bullet_train-outgoing_webhooks 1.2.16 → 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: 3e7722f2766dd5ca4287fa7523eda0b5d26a78440299805eea347a99db6c7b60
4
- data.tar.gz: 8f1d57cf4918aea8cb830b5cae7c5b9bad986a64f9adc5b825bac0b18b3d86fe
3
+ metadata.gz: 2bd7be5b3f5a3e72e6093b38fc440a89a03043e7709322c3707943ff177fcd40
4
+ data.tar.gz: 061cf50f53af327f888905d1f7d9543de103463445adeea56222fd3988753227
5
5
  SHA512:
6
- metadata.gz: d1001cf456add5fa52668b3824f5e490b30c812023f186c6957176d8ad16f2b1464e412af798eb1d6422c210b08fc8b2b3b2d19aaf7a4c8cb63d2fc69275f3f7
7
- data.tar.gz: de9d58ed00ec99fbe3c14ff2a28e5308fa7f741dedb8ab6ee1a5e928a5ff02a82494b22a21c0c1a9c52473d09d24984db65da02b1d271ffacaf593b840945cf5
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.16"
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.16
4
+ version: 1.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver