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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1e8a5b40c698a241c56177eeb9df203ec670b5bcc993d1449427bf2066a8a21
4
- data.tar.gz: 2164d1411b4acaf53eb2776d63d46118c438992e6a610116833ce7100bcfde6b
3
+ metadata.gz: 2bd7be5b3f5a3e72e6093b38fc440a89a03043e7709322c3707943ff177fcd40
4
+ data.tar.gz: 061cf50f53af327f888905d1f7d9543de103463445adeea56222fd3988753227
5
5
  SHA512:
6
- metadata.gz: c6f08c1164e14c2b53744195fe5eea0ac2021f9a8ebb6a17cd7892a5b089b2d1b285367ca49d4285424d41b611a7f403a0d145c65492fa26292feecec1772753
7
- data.tar.gz: 320502776d95ee278399994cff5ea97bc209f5c758a69b8d9103af852a006e2ea7fa6554f8c52d8a264bb0d0fd8db0f64d7a918ef8a663dd3b29bcbdf5b3960a
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, through: :team, through_association: :webhooks_outgoing_endpoints
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, through: :team, through_association: :webhooks_outgoing_events
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
@@ -1,6 +1,6 @@
1
1
  json.extract! endpoint,
2
2
  :id,
3
- :team_id,
3
+ BulletTrain::OutgoingWebhooks.parent_association.to_s.foreign_key.to_sym,
4
4
  :url,
5
5
  :name,
6
6
  :event_type_ids,
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module OutgoingWebhooks
3
- VERSION = "1.2.15"
3
+ VERSION = "1.2.17"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-outgoing_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.15
4
+ version: 1.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver