Class: Zaikio::Webhooks::WebhooksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Zaikio::Webhooks::WebhooksController
- Defined in:
- app/controllers/zaikio/webhooks/webhooks_controller.rb
Instance Method Summary collapse
Instance Method Details
#receive_event ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/zaikio/webhooks/webhooks_controller.rb', line 7 def receive_event Zaikio::Webhooks.webhooks_for(params[:client_name], event_params[:name]) .each do |job_klass, | job_klass.public_send([:perform_now] ? :perform_now : :perform_later, Zaikio::Webhooks::Event.new(event_params), **[:options]) end head :ok end |