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