Browse Source

lint fixes

pull/549/head
Dushan Despotovic 3 years ago
parent
commit
53223861ec
  1. 2
      app/models/validations/tenancy_validations.rb

2
app/models/validations/tenancy_validations.rb

@ -35,10 +35,10 @@ module Validations::TenancyValidations
def validate_joint_tenancy(record) def validate_joint_tenancy(record)
return unless record.collection_start_year? return unless record.collection_start_year?
if record.hhmemb == 1 && record.joint != 2 && record.collection_start_year >= 2022 if record.hhmemb == 1 && record.joint != 2 && record.collection_start_year >= 2022
record.errors.add :joint, I18n.t("validations.tenancy.not_joint") record.errors.add :joint, I18n.t("validations.tenancy.not_joint")
record.errors.add :hhmemb, I18n.t("validations.tenancy.not_joint") record.errors.add :hhmemb, I18n.t("validations.tenancy.not_joint")
end end
end end
end end
end

Loading…
Cancel
Save