Class: Account::ProfileForm
- Inherits:
-
ApplicationForm
- Object
- ApplicationForm
- Account::ProfileForm
- Defined in:
- app/forms/account/profile_form.rb
Instance Attribute Summary
Attributes inherited from ApplicationForm
Instance Method Summary collapse
Methods inherited from ApplicationForm
Instance Method Details
#submit ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/forms/account/profile_form.rb', line 17 def submit return false unless valid? api_answer = TranslationCms::Api::Customer.update_profile(customer: attributes) merge_responce! api_answer errors.empty? end |