Class: Phone::ConfirmationForm

Inherits:
ApplicationForm show all
Defined in:
app/forms/phone/confirmation_form.rb

Instance Attribute Summary

Attributes inherited from ApplicationForm

#raw_responce

Instance Method Summary collapse

Methods inherited from ApplicationForm

#persisted?

Instance Method Details

#submitObject



11
12
13
14
15
16
17
# File 'app/forms/phone/confirmation_form.rb', line 11

def submit
  return false unless valid?

  api_answer = TranslationCms::Api::Customers::PhoneVerifications.update(submit_params(attributes))
  merge_responce! api_answer
  errors.empty?
end