Sha256: 59c274f2c136f8be8386de381a3d7c87af41375f79191d8079fc2dd788deb298

Contents?: true

Size: 352 Bytes

Versions: 79

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

class Tramway::Event::Partaking < ::Tramway::Core::ApplicationRecord
  belongs_to :part, polymorphic: true
  enumerize :part_type, in: ['Tramway::Event::Event', 'Tramway::Event::Section']

  belongs_to :person, class_name: 'Tramway::Event::Person'

  search_by :position, person: %i[first_name last_name description]
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
tramway-event-1.12.3.2 app/models/tramway/event/partaking.rb
tramway-event-1.12.3.1 app/models/tramway/event/partaking.rb
tramway-event-1.12.3 app/models/tramway/event/partaking.rb
tramway-event-1.12.2 app/models/tramway/event/partaking.rb
tramway-event-1.12.1.1 app/models/tramway/event/partaking.rb
tramway-event-1.12.1 app/models/tramway/event/partaking.rb
tramway-event-1.12.0.1 app/models/tramway/event/partaking.rb
tramway-event-1.12 app/models/tramway/event/partaking.rb
tramway-event-1.11.5.1 app/models/tramway/event/partaking.rb
tramway-event-1.11.5 app/models/tramway/event/partaking.rb
tramway-event-1.11.4.1 app/models/tramway/event/partaking.rb
tramway-event-1.11.4 app/models/tramway/event/partaking.rb
tramway-event-1.11.2.1 app/models/tramway/event/partaking.rb
tramway-event-1.11.2 app/models/tramway/event/partaking.rb
tramway-event-1.11.1 app/models/tramway/event/partaking.rb
tramway-event-1.11.0.1 app/models/tramway/event/partaking.rb
tramway-event-1.11 app/models/tramway/event/partaking.rb
tramway-event-1.10.2 app/models/tramway/event/partaking.rb
tramway-event-1.10.1 app/models/tramway/event/partaking.rb
tramway-event-1.10.0.2 app/models/tramway/event/partaking.rb