Class: GnarusExercise::ExecutionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GnarusExercise::ExecutionsController
- Defined in:
- app/controllers/gnarus_exercise/executions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |