app/models/tramway/event/event.rb in tramway-event-1.2.5 vs app/models/tramway/event/event.rb in tramway-event-1.2.6
- old
+ new
@@ -5,7 +5,7 @@
has_many :participant_form_fields, class_name: 'Tramway::Event::ParticipantFormField'
has_many :sections, class_name: 'Tramway::Event::Section'
enumerize :status, default: :common, in: [ :common, :main ]
- scope :main_event, -> { where(status: :main).last }
+ scope :main_event, -> { where(status: :main) }
end