Sha256: f03f47c681838c3ad009ca6ac3cbf2f5121374d77d0402562ed52d10ac565e39
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 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' has_many :partakings, as: :part, class_name: 'Tramway::Event::Partaking' enumerize :status, default: :common, in: [ :common, :main ] scope :main_event, -> { where(status: :main) } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tramway-event-1.7.2 | app/models/tramway/event/event.rb |
tramway-event-1.7.1 | app/models/tramway/event/event.rb |
tramway-event-1.7 | app/models/tramway/event/event.rb |