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
# File 'app/controllers/pipedrive_jetrockets/events_controller.rb', line 4

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