From 25ed37012299850b634b411a886a9cc0e3ede780 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 1 Apr 2022 14:55:47 +0100 Subject: [PATCH] Remove unused methods --- app/models/case_log.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/models/case_log.rb b/app/models/case_log.rb index 76c47297c..ae44e1f40 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -124,10 +124,6 @@ class CaseLog < ApplicationRecord net_income_in_soft_min_range? || net_income_in_soft_max_range? end - def rent_in_soft_validation_range? - rent_in_soft_min_range? || rent_in_soft_max_range? - end - def given_reasonable_preference? reasonpref == 1 end @@ -277,22 +273,10 @@ class CaseLog < ApplicationRecord landlord == 1 end - def other_landlord? - landlord == 2 - end - def is_prevten_la_general_needs? [30, 31].any?(prevten) end - def soft_min - LaRentRange.find_by(start_year: collection_start_year, la:, beds:, lettype:).soft_min - end - - def soft_max - LaRentRange.find_by(start_year: collection_start_year, la:, beds:, lettype:).soft_max - end - def self.to_csv CSV.generate(headers: true) do |csv| csv << attribute_names