Sha256: 0d444db46807012d5ff0cdf5e5ad63dbf544f1c6209d130eff1cfbc0e4c845c5

Contents?: true

Size: 439 Bytes

Versions: 13

Compression:

Stored size: 439 Bytes

Contents

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'
  has_many :sections, class_name: 'Tramway::Event::Section'

  enumerize :status, default: :common, in: [ :common, :main ]

  scope :main_event, -> { where(status: :main) }
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tramway-event-1.6.4 app/models/tramway/event/event.rb
tramway-event-1.6.3 app/models/tramway/event/event.rb
tramway-event-1.6.2 app/models/tramway/event/event.rb
tramway-event-1.6.1 app/models/tramway/event/event.rb
tramway-event-1.6 app/models/tramway/event/event.rb
tramway-event-1.5.4 app/models/tramway/event/event.rb
tramway-event-1.5.3 app/models/tramway/event/event.rb
tramway-event-1.5.2 app/models/tramway/event/event.rb
tramway-event-1.5.1 app/models/tramway/event/event.rb
tramway-event-1.5 app/models/tramway/event/event.rb
tramway-event-1.4 app/models/tramway/event/event.rb
tramway-event-1.3 app/models/tramway/event/event.rb
tramway-event-1.2.6 app/models/tramway/event/event.rb