aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/multiple_choice_answer.rb')
-rw-r--r--app/models/multiple_choice_answer.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/multiple_choice_answer.rb b/app/models/multiple_choice_answer.rb
index 95e7186..6433f6d 100644
--- a/app/models/multiple_choice_answer.rb
+++ b/app/models/multiple_choice_answer.rb
@@ -1,4 +1,6 @@
+# Model storing answers for questions with multiple choice content.
class MultipleChoiceAnswer < Answer
+ # Returns RichTypes::CheckList describing given answer
def options
if @options.nil?
@options = RichTypes::CheckList.new(question.content.options)
@@ -7,6 +9,7 @@ class MultipleChoiceAnswer < Answer
@options
end
+ # Sets new answer
def options=(what)
self.options
@options.options = what