14 lines
515 B
14 lines
515 B
class Form::Sales::Pages::PreviousOwnership < ::Form::Page |
|
def initialize(id, hsh, subsection, joint_purchase:) |
|
super(id, hsh, subsection) |
|
@joint_purchase = joint_purchase |
|
@depends_on = [{ "joint_purchase?" => @joint_purchase }] |
|
@copy_key = "sales.income_benefits_and_savings.prevown.#{joint_purchase ? 'joint_purchase' : 'not_joint_purchase'}" |
|
end |
|
|
|
def questions |
|
@questions ||= [ |
|
Form::Sales::Questions::Prevown.new(nil, nil, self, joint_purchase: @joint_purchase), |
|
] |
|
end |
|
end
|
|
|