From a248d4bb5a838727192252459519f741feb28f5f Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Wed, 3 Jul 2024 10:18:50 +0100 Subject: [PATCH] fix linting --- .../further_education_payments/fixed_term_contract_form.rb | 2 +- .../further_education_payments/taught_at_least_one_term_form.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/forms/journeys/further_education_payments/fixed_term_contract_form.rb b/app/forms/journeys/further_education_payments/fixed_term_contract_form.rb index 1f447953e4..8c97fece7e 100644 --- a/app/forms/journeys/further_education_payments/fixed_term_contract_form.rb +++ b/app/forms/journeys/further_education_payments/fixed_term_contract_form.rb @@ -4,7 +4,7 @@ class FixedTermContractForm < Form attribute :fixed_term_full_year, :boolean validates :fixed_term_full_year, - inclusion: { in: -> (form) { form.radio_options.map(&:id) }, message: i18n_error_message(:inclusion) } + inclusion: {in: ->(form) { form.radio_options.map(&:id) }, message: i18n_error_message(:inclusion)} def radio_options [ diff --git a/app/forms/journeys/further_education_payments/taught_at_least_one_term_form.rb b/app/forms/journeys/further_education_payments/taught_at_least_one_term_form.rb index 71a8bd557c..020ed8a16e 100644 --- a/app/forms/journeys/further_education_payments/taught_at_least_one_term_form.rb +++ b/app/forms/journeys/further_education_payments/taught_at_least_one_term_form.rb @@ -6,7 +6,7 @@ class TaughtAtLeastOneTermForm < Form validates :taught_at_least_one_term, inclusion: { in: [true, false], - message: -> (object, data) { i18n_error_message(:inclusion, school_name: object.school.name).call(object, data) } + message: ->(object, data) { i18n_error_message(:inclusion, school_name: object.school.name).call(object, data) } } def radio_options