Sha256: 6700d631a811213be9d0ffd7409a6ee42954c8901590b9647eea1772c10a91a9

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

class Tramway::Event::ParticipantFormFieldForm < ::Tramway::Core::ApplicationForm
  properties :title, :description, :field_type, :event, :options, :position

  def initialize(object)
    form_object = super object
    form_properties event: :association,
                    title: :string,
                    description: :string,
                    field_type: :default,
                    options: :text,
                    position: :numeric
    form_object
  end

  def event=(value)
    super ::Tramway::Event::Event.find value
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-event-1.0 app/forms/tramway/event/participant_form_field_form.rb
tramway-event-0.7 app/forms/tramway/event/participant_form_field_form.rb
tramway-event-0.6 app/forms/tramway/event/participant_form_field_form.rb