Browse Source

refactor: lint

pull/1546/head
natdeanlewissoftwire 3 years ago
parent
commit
f7f9840bce
  1. 13
      app/models/form/sales/pages/housing_benefits.rb

13
app/models/form/sales/pages/housing_benefits.rb

@ -2,11 +2,14 @@ class Form::Sales::Pages::HousingBenefits < ::Form::Page
def initialize(id, hsh, subsection, joint_purchase:)
super(id, hsh, subsection)
@joint_purchase = joint_purchase
@depends_on = [if @joint_purchase
{ "joint_purchase?" => true }
else
{ "not_joint_purchase?" => true }
end]
@depends_on =
[
if @joint_purchase
{ "joint_purchase?" => true }
else
{ "not_joint_purchase?" => true }
end,
]
end
def questions

Loading…
Cancel
Save