Sha256: e30dcc335dc19f5fa9761a6512a1660351cad4f21d4fddaac423f52b35875a1a
Contents?: true
Size: 328 Bytes
Versions: 17
Compression:
Stored size: 328 Bytes
Contents
module PgEngine module AccountsHelper def show_profiles_for(user_account, profile_group) aux = profile_group[:options].select { |opt| user_account.profiles.include?(opt.first) } aux = aux.map(&:last).map { |pr| t(pr, scope: 'profile_member') }.join(', ').html_safe aux.presence || 'No' end end end
Version data entries
17 entries across 17 versions & 1 rubygems