Browse Source

Update app/models/case_log.rb

Remove unnecessary if

Co-authored-by: Daniel Baark <5101747+baarkerlounger@users.noreply.github.com>
pull/63/head
Milo 3 years ago committed by GitHub
parent
commit
988b87ac4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/case_log.rb

2
app/models/case_log.rb

@ -57,7 +57,7 @@ class CaseLogValidator < ActiveModel::Validator
def women_of_child_bearing_age_in_household(record) def women_of_child_bearing_age_in_household(record)
unless record.tenant_gender.nil? || record.tenant_age.nil? unless record.tenant_gender.nil? || record.tenant_age.nil?
if record.tenant_gender == "Female" && record.tenant_age >= 16 && record.tenant_age <= 50 record.tenant_gender == "Female" && record.tenant_age >= 16 && record.tenant_age <= 50
return true return true
end end
end end

Loading…
Cancel
Save