app/models/answer.rb in ask-0.1.2 vs app/models/answer.rb in ask-0.2.0

- old
+ new

@@ -5,10 +5,9 @@ belongs_to :answerer, :polymorphic => true belongs_to :question belongs_to :choice validates_presence_of :question_id - validates_presence_of :answer, :if=>lambda{|answer| !answer.question.is_a?(ChecklistQuestion) && answer.question.required } default_scope joins(:question).order('questions.position') scope :for_answerer, lambda{|answerer| where(:answerer_type => answerer.class.to_s, :answerer_id => answerer.id)} scope :for_question, lambda{|question| where(:question_id => question.id)}