module Trivia::ChosenAnswer::InstanceMethods
Public Instance Methods
fill_points()
click to toggle source
# File lib/trivia/chosen_answer.rb, line 25 def fill_points self.points = self.answer.right ? self.answer.question.points : 0 unless self.points end
fill_question()
click to toggle source
# File lib/trivia/chosen_answer.rb, line 29 def fill_question self.question = self.answer.question end