Browse Source

Check hhmemb exists

pull/2256/head
Kat 2 years ago
parent
commit
cb24816559
  1. 2
      app/models/validations/soft_validations.rb

2
app/models/validations/soft_validations.rb

@ -192,6 +192,8 @@ module Validations::SoftValidations
end end
def multiple_partners? def multiple_partners?
return unless hhmemb
(2..hhmemb).count { |n| public_send("relat#{n}") == "P" } > 1 (2..hhmemb).count { |n| public_send("relat#{n}") == "P" } > 1
end end

Loading…
Cancel
Save