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

Version Path
pg_rails-7.6.23 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.22 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.22.pre.3 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.22.pre.2 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.22.pre.1 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.11 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.10 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.9 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.8 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.7 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.6 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.5 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.4 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.3 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.2 pg_engine/app/helpers/pg_engine/accounts_helper.rb
pg_rails-7.6.21.pre.1 pg_engine/app/helpers/pg_engine/accounts_helper.rb