Browse Source

CLDC-4269: cleanup

pull/3332/head
Nat Dean-Lewis 2 weeks ago
parent
commit
af03530dca
  1. 14
      app/models/form/lettings/pages/person_known.rb

14
app/models/form/lettings/pages/person_known.rb

@ -2,16 +2,18 @@ class Form::Lettings::Pages::PersonKnown < ::Form::Page
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super(id, hsh, subsection) super(id, hsh, subsection)
@id = "person_#{person_index}_known" @id = "person_#{person_index}_known"
@depends_on = [{ @depends_on = depends_on
"hhmemb" => {
"operator" => ">=",
"operand" => @person_index,
},
}]
@person_index = person_index @person_index = person_index
end end
def questions def questions
@questions ||= [Form::Lettings::Questions::DetailsKnown.new(nil, nil, self, person_index: @person_index)] @questions ||= [Form::Lettings::Questions::DetailsKnown.new(nil, nil, self, person_index: @person_index)]
end end
def depends_on
[{ "hhmemb" => {
"operator" => ">=",
"operand" => @person_index,
} }]
end
end end

Loading…
Cancel
Save