app/models/tramway/event/event.rb in tramway-event-0.4.1 vs app/models/tramway/event/event.rb in tramway-event-0.5
- old
+ new
@@ -1,3 +1,6 @@
class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
mount_uploader :photo, PhotoUploader
+
+ has_many :participants, class_name: 'Tramway::Event::Participant'
+ has_many :participant_form_fields, class_name: 'Tramway::Event::ParticipantFormField'
end