Merge pull request #1355 from chashmeetsingh/master

Update error message
This commit is contained in:
Ana María Martínez Gómez 2017-03-15 15:27:41 +01:00 committed by GitHub
commit a5a6c81cd9

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
##