Sha256: 41ea4196b09ad3a21a436a429d42d2ca7060681f8e6aaef10c25f2dbaca9d263

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Event::PersonForm < ::Tramway::ApplicationForm
  properties :first_name, :last_name, :photo, :description

  def initialize(object)
    super(object).tap do
      form_properties first_name: :string,
                      last_name: :string,
                      photo: :file,
                      description: :ckeditor
    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/person_form.rb
tramway-event-2.0.0.1 app/forms/admin/tramway/event/person_form.rb
tramway-event-2.0 app/forms/admin/tramway/event/person_form.rb