Browse Source

CLDC-1304: Rubocop

pull/650/head
Stéphane Meny 3 years ago
parent
commit
665bc7ecfd
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 10
      app/models/derived_varables/case_log_variables.rb

10
app/models/derived_varables/case_log_variables.rb

@ -141,11 +141,11 @@ private
return unless startdate return unless startdate
referral_within_sector = [1, 10] referral_within_sector = [1, 10]
if collection_start_year <= 2021 previous_social_tenancies = if collection_start_year <= 2021
previous_social_tenancies = [6, 8, 30, 31, 32, 33] [6, 8, 30, 31, 32, 33]
else else
previous_social_tenancies = [6, 30, 31, 32, 33, 34, 35] [6, 30, 31, 32, 33, 34, 35]
end end
if previous_social_tenancies.include?(prevten) || referral_within_sector.include?(referral) if previous_social_tenancies.include?(prevten) || referral_within_sector.include?(referral)
2 # Tenant existing in social housing sector 2 # Tenant existing in social housing sector

Loading…
Cancel
Save