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
# File 'app/helpers/admin/users_helper.rb', line 2

def roles(user)
  roles = []
  roles << I18n.t('admin') if user.admin?
  roles << I18n.t('designer') if user.designer?
  roles.join(', ')
end