moves validation error message

This commit is contained in:
Juanjo Bazán
2016-12-21 14:21:02 +01:00
parent 298c9cb76a
commit 78db093e49
5 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ class Poll < ActiveRecord::Base
def date_range
unless starts_at.present? && ends_at.present? && starts_at <= ends_at
errors.add(:starts_at, I18n.t('activerecord.errors.invalid_date_range'))
errors.add(:starts_at, I18n.t('errors.messages.invalid_date_range'))
end
end