Browse Source

Remove redundant form assignments from sections

pull/1166/head
Kat 3 years ago
parent
commit
0207bbd02d
  1. 1
      app/models/form/sales/sections/finances.rb
  2. 1
      app/models/form/sales/sections/household.rb
  3. 1
      app/models/form/sales/sections/property_information.rb
  4. 1
      app/models/form/sales/sections/sale_information.rb
  5. 1
      app/models/form/sales/sections/setup.rb

1
app/models/form/sales/sections/finances.rb

@ -4,7 +4,6 @@ class Form::Sales::Sections::Finances < ::Form::Section
@id = "finances" @id = "finances"
@label = "Finances" @label = "Finances"
@description = "" @description = ""
@form = form
@subsections = [ @subsections = [
Form::Sales::Subsections::IncomeBenefitsAndSavings.new(nil, nil, self), Form::Sales::Subsections::IncomeBenefitsAndSavings.new(nil, nil, self),
] ]

1
app/models/form/sales/sections/household.rb

@ -4,7 +4,6 @@ class Form::Sales::Sections::Household < ::Form::Section
@id = "household" @id = "household"
@label = "About the household" @label = "About the household"
@description = "" @description = ""
@form = form
@subsections = [ @subsections = [
Form::Sales::Subsections::HouseholdCharacteristics.new(nil, nil, self), Form::Sales::Subsections::HouseholdCharacteristics.new(nil, nil, self),
Form::Sales::Subsections::HouseholdSituation.new(nil, nil, self), Form::Sales::Subsections::HouseholdSituation.new(nil, nil, self),

1
app/models/form/sales/sections/property_information.rb

@ -4,7 +4,6 @@ class Form::Sales::Sections::PropertyInformation < ::Form::Section
@id = "property_information" @id = "property_information"
@label = "Property information" @label = "Property information"
@description = "" @description = ""
@form = form
@subsections = [Form::Sales::Subsections::PropertyInformation.new(nil, nil, self)] || [] @subsections = [Form::Sales::Subsections::PropertyInformation.new(nil, nil, self)] || []
end end
end end

1
app/models/form/sales/sections/sale_information.rb

@ -4,7 +4,6 @@ class Form::Sales::Sections::SaleInformation < ::Form::Section
@id = "sale_information" @id = "sale_information"
@label = "Sale information" @label = "Sale information"
@description = "" @description = ""
@form = form
@subsections = [ @subsections = [
Form::Sales::Subsections::SharedOwnershipScheme.new(nil, nil, self), Form::Sales::Subsections::SharedOwnershipScheme.new(nil, nil, self),
Form::Sales::Subsections::DiscountedOwnershipScheme.new(nil, nil, self), Form::Sales::Subsections::DiscountedOwnershipScheme.new(nil, nil, self),

1
app/models/form/sales/sections/setup.rb

@ -4,7 +4,6 @@ class Form::Sales::Sections::Setup < ::Form::Section
@id = "setup" @id = "setup"
@label = "Before you start" @label = "Before you start"
@description = "" @description = ""
@form = form
@subsections = [Form::Sales::Subsections::Setup.new(nil, nil, self)] || [] @subsections = [Form::Sales::Subsections::Setup.new(nil, nil, self)] || []
end end
end end

Loading…
Cancel
Save