Sha256: 65b621826a472d286c0f543c60f2faec60a1bdbeef1f3d2fe65b8207b955f30d
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
module Georgia module UsersHelper def permissions_view Georgia.permissions.map{|section, actions| permission_table_tag(section, actions)}.join().html_safe end def permission_table_tag section, actions PermissionTablePresenter.new(self, section, actions).to_s end def georgia_roles_collection @georgia_role_collection ||= Georgia::Role.pluck(:name, :id).map{|name, id| [name.titleize, id]} end def unknown_user_name content_tag(:span, 'Unknown', class: 'text-muted') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.8.0 | app/helpers/georgia/users_helper.rb |