Sha256: b1115b1c49a7474ece82c35ac790a3c18bbfc147c30f6bad9a62f84bff3e50b7

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Event::ActionForm < Tramway::ApplicationForm
  properties :title, :action_state_event, :deadline

  association :event

  def initialize(object)
    super(object).tap do
      form_properties event: :association,
                      title: :string,
                      deadline: :date_picker
    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/action_form.rb
tramway-event-2.0.0.1 app/forms/admin/tramway/event/action_form.rb
tramway-event-2.0 app/forms/admin/tramway/event/action_form.rb