Sha256: 05fcb740d9859d2774f8d4368dee05ee90dff1a388be366a672edaa4dc81c885

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Event::PartakingForm < ::Tramway::ApplicationForm
  properties :part_id, :part_type, :person_id, :position
  associations :person, :part

  def initialize(object)
    super(object).tap do
      form_properties part: :polymorphic_association,
                      person: :association,
                      position: :string
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-event-2.0.1 app/forms/admin/tramway/event/partaking_form.rb
tramway-event-2.0.0.1 app/forms/admin/tramway/event/partaking_form.rb
tramway-event-2.0 app/forms/admin/tramway/event/partaking_form.rb