From d9c61a1dde8453f717c111a3f1f3fe6a2e506dbf Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 16 Aug 2022 10:18:00 +0100 Subject: [PATCH] Remove housingneeds_present? method --- app/models/case_log.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/case_log.rb b/app/models/case_log.rb index 84c2585b6..9f35df7ba 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -25,7 +25,7 @@ class CaseLog < ApplicationRecord before_validation :reset_scheme_location!, if: :scheme_changed?, unless: :location_changed? before_validation :process_postcode_changes!, if: :postcode_full_changed? before_validation :process_previous_postcode_changes!, if: :ppostcode_full_changed? - before_validation :set_housingneeds_fields, if: :housingneeds_present? + before_validation :set_housingneeds_fields, if: :housingneeds? before_validation :reset_invalidated_dependent_fields! before_validation :reset_location_fields!, unless: :postcode_known? before_validation :reset_previous_location_fields!, unless: :previous_postcode_known? @@ -732,10 +732,6 @@ private string.present? ? string.upcase.gsub(/\s+/, "") : string end - def housingneeds_present? - housingneeds.present? - end - def fully_wheelchair_accessible? housingneeds_type.present? && housingneeds_type.zero? end