6 changed files with 51 additions and 19 deletions
@ -1,12 +1,13 @@
|
||||
class Form::Sales::Pages::PreviousOwnership < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "previous_ownership" |
||||
def initialize(id, hsh, subsection, joint_purchase:) |
||||
super(id, hsh, subsection) |
||||
@joint_purchase = joint_purchase |
||||
@depends_on = [{ "joint_purchase?" => @joint_purchase}] |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::Prevown.new(nil, nil, self), |
||||
Form::Sales::Questions::Prevown.new(nil, nil, self, joint_purchase: @joint_purchase), |
||||
] |
||||
end |
||||
end |
||||
|
||||
Loading…
Reference in new issue