Class: Course::Assessment::Answer::Scribing

Inherits:
ApplicationRecord show all
Defined in:
app/models/course/assessment/answer/scribing.rb

Instance Method Summary collapse

Instance Method Details

#reset_answerObject

Specific implementation of Course::Assessment::Answer#reset_answer


14
15
16
17
18
19
20
# File 'app/models/course/assessment/answer/scribing.rb', line 14

def reset_answer
  self.class.transaction do
    scribbles.clear
    raise ActiveRecord::Rollback unless save
  end
  acting_as
end

#to_partial_pathObject


9
10
11
# File 'app/models/course/assessment/answer/scribing.rb', line 9

def to_partial_path
  'course/assessment/answer/scribing/scribing'
end