Class: FormProfiles::VA686c674
- Inherits:
-
FormProfile
- Object
- FormProfile
- FormProfiles::VA686c674
- Defined in:
- app/models/form_profiles/va_686c674.rb
Defined Under Namespace
Classes: FormAddress
Instance Method Summary collapse
Instance Method Details
#metadata ⇒ Object
26 27 28 29 30 31 32 |
# File 'app/models/form_profiles/va_686c674.rb', line 26 def { version: 0, prefill: true, returnUrl: '/686-options-selection' } end |
#prefill ⇒ Object
20 21 22 23 24 |
# File 'app/models/form_profiles/va_686c674.rb', line 20 def prefill prefill_form_address super end |
#prefill_form_address ⇒ Object (private)
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'app/models/form_profiles/va_686c674.rb', line 36 def prefill_form_address mailing_address = VAProfileRedis::ContactInformation.for_user(user).mailing_address if user.vet360_id.present? return if mailing_address.blank? @form_address = FormAddress.new( mailing_address.to_h.slice( :address_line1, :address_line2, :address_line3, :city, :state_code, :province, :zip_code, :international_postal_code ).merge(country_name: mailing_address.country_code_iso3) ) end |