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