Merge pull request #757 from differentreality/fix_tests_756

Fix failed tests of #756
This commit is contained in:
Christian Bruckmayer 2016-01-21 17:32:36 +01:00
commit fb7ebab5a0

View file

@ -591,7 +591,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
errors.add(:start_date, 'Start date is greater than End date') if start_date && end_date && start_date > end_date
end
##