Sha256: a0a7427b3c96866a1668c7313e2430057d57e3c8a33bd821120119b2b5d05b07
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 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).last } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tramway-event-1.2.5 | app/models/tramway/event/event.rb |
tramway-event-1.2.4 | app/models/tramway/event/event.rb |
tramway-event-1.2.3 | app/models/tramway/event/event.rb |