Class: GnarusActivity::ExecutionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/gnarus_activity/executions_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#after_sign_in_path_for

Instance Method Details

#create ⇒ Object



6
7
8
9
10
11
# File 'app/controllers/gnarus_activity/executions_controller.rb', line 6

def create
  @attempt = Attempt.find params[:attempt_id]
  execution = ::ActivityProcessor.process @attempt, params
  execution.save
  render :json => execution.to_json(:includes => :attempt)
end