bullet_train-outgoing_webhooks 1.2.15 → 1.2.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v1/webhooks/outgoing/endpoints_controller.rb +3 -1
- data/app/controllers/api/v1/webhooks/outgoing/events_controller.rb +3 -1
- data/app/views/api/v1/webhooks/outgoing/endpoints/_endpoint.json.jbuilder +1 -1
- data/lib/bullet_train/outgoing_webhooks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bd7be5b3f5a3e72e6093b38fc440a89a03043e7709322c3707943ff177fcd40
|
4
|
+
data.tar.gz: 061cf50f53af327f888905d1f7d9543de103463445adeea56222fd3988753227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7c382a13aaec5a25efa25fd11dbf97da91a4de967f584ad5398323a9f975eff65a6089339a8f79c0c52c677f0d900248aea3a7dbb1e09ed0bee97e4221a3282
|
7
|
+
data.tar.gz: 870f86a2401acd0f8e21e46b385427258f6d5efdbaa84369e0fb1bd3012a87577e44530df8bf9fd906477cab1b4b85283fea776e94d1cd810d7a41f60ba75bfb
|
@@ -1,5 +1,7 @@
|
|
1
1
|
class Api::V1::Webhooks::Outgoing::EndpointsController < Api::V1::ApplicationController
|
2
|
-
account_load_and_authorize_resource :endpoint,
|
2
|
+
account_load_and_authorize_resource :endpoint,
|
3
|
+
through: BulletTrain::OutgoingWebhooks.parent_association,
|
4
|
+
through_association: :webhooks_outgoing_endpoints
|
3
5
|
|
4
6
|
# GET /api/v1/teams/:team_id/webhooks/outgoing/endpoints
|
5
7
|
def index
|
@@ -1,5 +1,7 @@
|
|
1
1
|
class Api::V1::Webhooks::Outgoing::EventsController < Api::V1::ApplicationController
|
2
|
-
account_load_and_authorize_resource :event,
|
2
|
+
account_load_and_authorize_resource :event,
|
3
|
+
through: BulletTrain::OutgoingWebhooks.parent_association,
|
4
|
+
through_association: :webhooks_outgoing_events
|
3
5
|
|
4
6
|
# GET /api/v1/teams/:team_id/webhooks/outgoing/events
|
5
7
|
def index
|