Class: Nuntius::CallbacksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/nuntius/callbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



12
13
14
15
16
17
18
19
# File 'app/controllers/nuntius/callbacks_controller.rb', line 12

def create
  message = Nuntius::Message.find(params[:message_id])
  response = message.nuntius_provider(message).callback(params)

  render body: response[2].first,
    content_type: response[1]["Content-Type"],
    layout: false
end