1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/helpers/people_helper.rb

12 lines
321 B
Ruby

# frozen_string_literal: true
module PeopleHelper
def person_status(person)
if person.nil? || person.current_relationship.nil?
return translate :not_in_party, scope: %i[helpers person_status]
end
translate person.current_relationship.status,
scope: %i[helpers person_status]
end
end