Fix failed tests of #756
This commit is contained in:
parent
d7d851cb56
commit
152b59aade
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ class Conference < ActiveRecord::Base
|
||||||
#
|
#
|
||||||
# Reports an error when such a condition is found
|
# Reports an error when such a condition is found
|
||||||
def valid_date_range?
|
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
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue