Class: GnarusExercise::Attempt
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GnarusExercise::Attempt
- Defined in:
- app/models/gnarus_exercise/attempt.rb
Instance Method Summary collapse
Instance Method Details
#full_return_uri ⇒ Object
7 8 9 |
# File 'app/models/gnarus_exercise/attempt.rb', line 7 def full_return_uri (return_uri || "") + "?answer=" + (solution || "") end |
#process(params) ⇒ Object
11 12 13 |
# File 'app/models/gnarus_exercise/attempt.rb', line 11 def process(params) executions.create :solution => params[:solution], :suceeded => params[:suceeded] end |