Browse Source

lint fixes

pull/570/head
Dushan Despotovic 3 years ago
parent
commit
740ea35760
  1. 8
      app/models/case_log.rb

8
app/models/case_log.rb

@ -396,14 +396,14 @@ class CaseLog < ApplicationRecord
def plural_gender_for_person(person_num)
gender = public_send("sex#{person_num}".to_sym)
return unless gender
if gender == "M" || gender == "X"
return "men and non-binary people"
if %w[M X].include?(gender)
"men and non-binary people"
elsif gender == "F"
return "women"
"women"
end
end
private
PIO = Postcodes::IO.new

Loading…
Cancel
Save