1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class MultipleChoiceAnswer < Answer def options if @options.nil? @options = RichTypes::CheckList.new(question.content.options) @options.options = content.to_s end @options end def options=(what) self.options @options.options = what self.content = @options.to_s end end