app/models/tramway/event/event.rb in tramway-event-1.8.3 vs app/models/tramway/event/event.rb in tramway-event-1.8.4
- old
+ new
@@ -12,8 +12,8 @@
def request_collecting_state
return :not_initialized unless request_collecting_begin_date.present? || request_collecting_end_date.present?
return :will_begin_soon if request_collecting_begin_date > DateTime.now
return :is_over if request_collecting_end_date < DateTime.now
- return :are_being_right_now if begin_date&.past? && end_date&.future?
+ return :are_being_right_now if request_collecting_begin_date&.past? && request_collecting_end_date&.future?
end
end