Browse Source

Remove unused methods

pull/443/head
baarkerlounger 3 years ago
parent
commit
25ed370122
  1. 16
      app/models/case_log.rb

16
app/models/case_log.rb

@ -124,10 +124,6 @@ class CaseLog < ApplicationRecord
net_income_in_soft_min_range? || net_income_in_soft_max_range? net_income_in_soft_min_range? || net_income_in_soft_max_range?
end end
def rent_in_soft_validation_range?
rent_in_soft_min_range? || rent_in_soft_max_range?
end
def given_reasonable_preference? def given_reasonable_preference?
reasonpref == 1 reasonpref == 1
end end
@ -277,22 +273,10 @@ class CaseLog < ApplicationRecord
landlord == 1 landlord == 1
end end
def other_landlord?
landlord == 2
end
def is_prevten_la_general_needs? def is_prevten_la_general_needs?
[30, 31].any?(prevten) [30, 31].any?(prevten)
end 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 def self.to_csv
CSV.generate(headers: true) do |csv| CSV.generate(headers: true) do |csv|
csv << attribute_names csv << attribute_names

Loading…
Cancel
Save