diff --git a/app/models/form/lettings/pages/max_rent_value_check.rb b/app/models/form/lettings/pages/max_rent_value_check.rb index 09f4e19f5..c739c0b70 100644 --- a/app/models/form/lettings/pages/max_rent_value_check.rb +++ b/app/models/form/lettings/pages/max_rent_value_check.rb @@ -1,5 +1,5 @@ class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page - def initialize(id, hsh, subsection, check_answers_card_number = nil) + def initialize(id, hsh, subsection, check_answers_card_number: nil) super(id, hsh, subsection) @id = "max_rent_value_check" @depends_on = [{ "rent_in_soft_max_range?" => true }] diff --git a/app/models/form/lettings/pages/min_rent_value_check.rb b/app/models/form/lettings/pages/min_rent_value_check.rb index 75d3a8240..e4de7821d 100644 --- a/app/models/form/lettings/pages/min_rent_value_check.rb +++ b/app/models/form/lettings/pages/min_rent_value_check.rb @@ -1,5 +1,5 @@ class Form::Lettings::Pages::MinRentValueCheck < ::Form::Page - def initialize(id, hsh, subsection, check_answers_card_number = nil) + def initialize(id, hsh, subsection, check_answers_card_number: nil) super(id, hsh, subsection) @id = "min_rent_value_check" @depends_on = [{ "rent_in_soft_min_range?" => true }] diff --git a/app/models/form/lettings/subsections/income_and_benefits.rb b/app/models/form/lettings/subsections/income_and_benefits.rb index 00e5c6317..b2f370be3 100644 --- a/app/models/form/lettings/subsections/income_and_benefits.rb +++ b/app/models/form/lettings/subsections/income_and_benefits.rb @@ -24,8 +24,8 @@ class Form::Lettings::Subsections::IncomeAndBenefits < ::Form::Subsection Form::Lettings::Pages::RentBiWeekly.new(nil, nil, self), Form::Lettings::Pages::Rent4Weekly.new(nil, nil, self), Form::Lettings::Pages::RentMonthly.new(nil, nil, self), - Form::Lettings::Pages::MinRentValueCheck.new(nil, nil, self, 0), - Form::Lettings::Pages::MaxRentValueCheck.new(nil, nil, self, 0), + Form::Lettings::Pages::MinRentValueCheck.new(nil, nil, self, check_answers_card_number: 0), + Form::Lettings::Pages::MaxRentValueCheck.new(nil, nil, self, check_answers_card_number: 0), Form::Lettings::Pages::Outstanding.new(nil, nil, self), Form::Lettings::Pages::OutstandingAmount.new(nil, nil, self), ].compact diff --git a/app/models/form/lettings/subsections/property_information.rb b/app/models/form/lettings/subsections/property_information.rb index d7e8af998..5e6a5aa51 100644 --- a/app/models/form/lettings/subsections/property_information.rb +++ b/app/models/form/lettings/subsections/property_information.rb @@ -10,8 +10,8 @@ class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection @pages ||= [ uprn_questions, Form::Lettings::Pages::PropertyLocalAuthority.new(nil, nil, self), - Form::Lettings::Pages::MinRentValueCheck.new(nil, nil, self, 0), - Form::Lettings::Pages::MaxRentValueCheck.new(nil, nil, self, 0), + Form::Lettings::Pages::MinRentValueCheck.new(nil, nil, self, check_answers_card_number: 0), + Form::Lettings::Pages::MaxRentValueCheck.new(nil, nil, self, check_answers_card_number: 0), Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing.new(nil, nil, self), Form::Lettings::Pages::PropertyLetType.new(nil, nil, self), Form::Lettings::Pages::PropertyVacancyReasonNotFirstLet.new(nil, nil, self), @@ -22,8 +22,8 @@ class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection Form::Lettings::Pages::PropertyBuildingType.new(nil, nil, self), Form::Lettings::Pages::PropertyWheelchairAccessible.new(nil, nil, self), Form::Lettings::Pages::PropertyNumberOfBedrooms.new(nil, nil, self), - Form::Lettings::Pages::MinRentValueCheck.new(nil, nil, self, 0), - Form::Lettings::Pages::MaxRentValueCheck.new(nil, nil, self, 0), + Form::Lettings::Pages::MinRentValueCheck.new(nil, nil, self, check_answers_card_number: 0), + Form::Lettings::Pages::MaxRentValueCheck.new(nil, nil, self, check_answers_card_number: 0), Form::Lettings::Pages::VoidDate.new(nil, nil, self), Form::Lettings::Pages::VoidDateValueCheck.new(nil, nil, self), Form::Lettings::Pages::PropertyMajorRepairs.new(nil, nil, self),