app/models/tramway/event/event.rb in tramway-event-1.9.19.3 vs app/models/tramway/event/event.rb in tramway-event-1.9.19.4

- old
+ new

@@ -22,7 +22,9 @@ 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 request_collecting_begin_date&.past? && request_collecting_end_date&.future? end - include ::Tramway::Partner::Scopes + if defined? ::Tramway::Partner + include ::Tramway::Partner::Scopes + end end