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 << 'Administrator' if user.admin?
  roles << 'Designer' if user.designer?
  roles.join(', ')
end