Class: Admin::Tramway::User::UserForm

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

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ UserForm

Returns a new instance of UserForm.



13
14
15
16
17
18
19
20
21
22
# File 'app/forms/admin/tramway/user/user_form.rb', line 13

def initialize(object)
  super(object).tap do
    form_properties email: :string,
                    password: :string,
                    first_name: :string,
                    last_name: :string,
                    phone: :string,
                    role: :default
  end
end