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