Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MortgageApplication::Borrower
- include Virtus.model
- attribute :personal_information, PersonalInformation, default: :build_personal_info
- attribute :current_address, Address, default: :build_address
- attribute :resided_at_address_since, String, default: ""
- attribute :owns_current_residence, String, default: ""
- attribute :current_employer, Employer, default: :build_employer
- attribute :previous_employer, Employer, default: :build_employer
- def build_employer
- Employer.new
- end
- def build_personal_info
- PersonalInformation.new
- end
- def build_address
- Address.new
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment