Fix registration_dates_given?
When the registration period is nil registration_dates_given? should return false.
This commit is contained in:
parent
b15c1abd2e
commit
7638b33926
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ class Conference < ActiveRecord::Base
|
||||||
# * +false+ -> If the conference registration dates are not set
|
# * +false+ -> If the conference registration dates are not set
|
||||||
# * +true+ -> If conference registration dates are set
|
# * +true+ -> If conference registration dates are set
|
||||||
def registration_dates_given?
|
def registration_dates_given?
|
||||||
if registration_period && (registration_period.start_date.blank? || registration_period.end_date.blank?)
|
if registration_period.nil? || (registration_period.start_date.blank? || registration_period.end_date.blank?)
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
true
|
true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue