Class: GnarusExercise::ExecutionsController

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

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
9
10
11
# File 'app/controllers/gnarus_exercise/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