Class: Admin::Tramway::SportSchool::TrainerForm

Inherits:
Tramway::Core::ApplicationForm
  • Object
show all
Defined in:
app/forms/admin/tramway/sport_school/trainer_form.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ TrainerForm

Returns a new instance of TrainerForm.



6
7
8
9
10
11
12
13
14
15
# File 'app/forms/admin/tramway/sport_school/trainer_form.rb', line 6

def initialize(object)
  super(object).tap do
    form_properties first_name: :string,
                    last_name: :string,
                    patronymic: :string,
                    photo: :file,
                    degree: :default,
                    description: :text
  end
end