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

17 lines
380 B
Ruby

# frozen_string_literal: true
module PeopleHelper
def staff_person_link_or_none(person)
if person.nil?
none
elsif policy([:staff, person]).show?
link_to person.full_name, [:staff, person]
else
person.full_name
end
end
def person_account_connection_link(person)
new_settings_person_url token: person.account_connection_token
end
end