diff --git a/app/models/conference.rb b/app/models/conference.rb index 13c99f8c..221af5ba 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -141,7 +141,7 @@ class Conference < ActiveRecord::Base # * +true+ -> If today is in the registration period. def registration_open? today = Date.current - if registration_period && registration_dates_given? + if registration_dates_given? (registration_period.start_date..registration_period.end_date).cover?(today) else false