Sha256: efd606f5b8f149553d7e47b31057906a55249ab63044403af9201bcc9ffa5a4c

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Event::PlaceForm < Tramway::ApplicationForm
  properties :title, :description, :coordinates, :photo, :city

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