Class: Api::EventsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Api::EventsController
- Defined in:
- app/controllers/nuntius/api/events_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
11 12 13 14 |
# File 'app/controllers/nuntius/api/events_controller.rb', line 11 def create nuntius_params = params.except(:scope, :event, :context, :controller, :action).permit!.to_h Nuntius.event(params[:event], { params[:scope] => params[:context].permit!.to_h }, nuntius_params) end |