Module: Admin::UsersHelper
- Defined in:
- app/helpers/admin/users_helper.rb
Instance Method Summary collapse
Instance Method Details
#roles(user) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/admin/users_helper.rb', line 2 def roles(user) roles = [] roles << I18n.t('admin') if user.admin? roles << I18n.t('editor') if user.editor? roles << I18n.t('content_editor') if user.content_editor? roles.join(', ') end |