lib/ask/acts_as_answerer.rb in ask-0.3.0 vs lib/ask/acts_as_answerer.rb in ask-0.3.1

- old
+ new

@@ -87,10 +87,10 @@ end private def validate_required_questions - event.questions.required.each do |question| + asker.questions.required.each do |question| if answers.select{|a| a.question_id == question.id}.all?{|a| a.answer.blank?} errors[:base] << "\"#{question.name}\" is required" end end end