From d1bb8a5d6f82a196fd8a26c01bea0e8e42a3c03c Mon Sep 17 00:00:00 2001 From: Ted-U Date: Tue, 20 Sep 2022 13:23:17 +0100 Subject: [PATCH] lint --- app/models/form/sales/pages/joint_purchase.rb | 28 ++++++++--------- .../form/sales/questions/joint_purchase.rb | 31 +++++++++---------- 2 files changed, 28 insertions(+), 31 deletions(-) diff --git a/app/models/form/sales/pages/joint_purchase.rb b/app/models/form/sales/pages/joint_purchase.rb index 305cfd31a..fecbff757 100644 --- a/app/models/form/sales/pages/joint_purchase.rb +++ b/app/models/form/sales/pages/joint_purchase.rb @@ -1,17 +1,15 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page - def initialize(id, hsh, subsection) - super - @id = "joint_purchase" - @header = "" - @description = "" - @subsection = subsection - }] - end - - def questions - @questions ||= [ - Form::Sales::Questions::JointPurchase.new(nil, nil, self), - ] - end + def initialize(id, hsh, subsection) + super + @id = "joint_purchase" + @header = "" + @description = "" + @subsection = subsection end - \ No newline at end of file + + def questions + @questions ||= [ + Form::Sales::Questions::JointPurchase.new(nil, nil, self), + ] + end +end diff --git a/app/models/form/sales/questions/joint_purchase.rb b/app/models/form/sales/questions/joint_purchase.rb index 614972ae5..b026abfdc 100644 --- a/app/models/form/sales/questions/joint_purchase.rb +++ b/app/models/form/sales/questions/joint_purchase.rb @@ -1,18 +1,17 @@ class Form::Sales::Questions::JointPurchase < ::Form::Question - def initialize(id, hsh, page) - super - @id = "type" - @check_answer_label = "Joint purchase" - @header = "Is this a joint purchase?" - @hint_text = "" - @type = "radio" - @answer_options = ANSWER_OPTIONS - @page = page - end - - ANSWER_OPTIONS = { - "1" => { "value" => "Yes" }, - "0" => { "value" => "No" }, - }.freeze + def initialize(id, hsh, page) + super + @id = "type" + @check_answer_label = "Joint purchase" + @header = "Is this a joint purchase?" + @hint_text = "" + @type = "radio" + @answer_options = ANSWER_OPTIONS + @page = page end - \ No newline at end of file + + ANSWER_OPTIONS = { + "1" => { "value" => "Yes" }, + "0" => { "value" => "No" }, + }.freeze +end