Class: PipedriveJetrockets::EventsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/pipedrive_jetrockets/events_controller.rb

Instance Method Summary collapse

Instance Method Details

#handleObject



4
5
6
7
# File 'app/controllers/pipedrive_jetrockets/events_controller.rb', line 4

def handle
  json = params[:current] || params[:previous]
  ActiveSupport::Notifications.instrument "#{params[:object]}_#{params[:event]}", {params[:object].to_sym => "PipedriveJetrockets::#{params[:object].titleize}".constantize.new(json)}
end