fix: #1345 (remove duplicate text in error message)

This commit is contained in:
Chashmeet Singh 2017-03-11 21:01:06 +05:30
parent 05209260a4
commit 43dbb153c2

View file

@ -657,7 +657,7 @@ class Conference < ActiveRecord::Base
#
# Reports an error when such a condition is found
def valid_date_range?
errors.add(:start_date, 'Start date is greater than End date') if start_date && end_date && start_date > end_date
errors.add(:start_date, 'is greater than End date') if start_date && end_date && start_date > end_date
end
##