Class: Admin::Tramway::Event::PersonForm

Inherits:
Tramway::ApplicationForm
  • Object
show all
Defined in:
app/forms/admin/tramway/event/person_form.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ PersonForm

Returns a new instance of PersonForm.



6
7
8
9
10
11
12
13
# File 'app/forms/admin/tramway/event/person_form.rb', line 6

def initialize(object)
  super(object).tap do
    form_properties first_name: :string,
                    last_name: :string,
                    photo: :file,
                    description: :ckeditor
  end
end