Sha256: b29bd8d349d68321def49e0aac9020c9e208845060d1f040c4011e552ece0e21

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

class Tramway::Event::SectionForm < ::Tramway::Core::ApplicationForm
  properties :event, :title, :description, :photo, :icon
  association :event

  def initialize(object)
    super(object).tap do
      form_properties title: :string,
                      description: :ckeditor,
                      event: :association,
                      photo: :file,
                      icon: :string
    end       
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-event-1.2.1 app/forms/tramway/event/section_form.rb
tramway-event-1.2 app/forms/tramway/event/section_form.rb
tramway-event-1.1 app/forms/tramway/event/section_form.rb