Class: Houdini::PostbacksController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/houdini/postbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



5
6
7
8
9
10
# File 'app/controllers/houdini/postbacks_controller.rb', line 5

def create
  task_results = HashWithIndifferentAccess.new ActiveSupport::JSON.decode(request.raw_post)

  Houdini::PostbackProcessor.process CGI.unescape(params[:object_class]), params[:object_id], task_results
  render :json => { :success => true }
end