app/models/effective/ballot_response.rb in effective_polls-0.3.0 vs app/models/effective/ballot_response.rb in effective_polls-0.4.0
- old
+ new
@@ -62,10 +62,10 @@
validates :poll_question_option_ids, if: -> { poll_question&.select_up_to_5? },
length: { maximum: 5, message: 'please select 5 options or fewer' }
def to_s
- 'ballot reponse'
+ model_name.human
end
def response
return nil unless poll_question.present?