Browse Source

CLDC-1698 Use `is_supported_housing?` method

pull/975/head
David May-Miller 3 years ago
parent
commit
a3a619c50a
  1. 2
      app/models/validations/tenancy_validations.rb

2
app/models/validations/tenancy_validations.rb

@ -49,6 +49,6 @@ module Validations::TenancyValidations
end
def min_tenancy_length(record)
record.needstype == 2 || record.renttype == 3 ? 1 : 2
record.is_supported_housing? || record.renttype == 3 ? 1 : 2
end
end

Loading…
Cancel
Save