Module: Admin::UsersHelper

Defined in:
app/helpers/admin/users_helper.rb

Instance Method Summary collapse

Instance Method Details

#list_roles(user) ⇒ Object



3
4
5
6
# File 'app/helpers/admin/users_helper.rb', line 3

def list_roles(user)
  # while testing spree-core itself user model does not have method roles
  user.respond_to?(:roles) ? user.roles.collect {|role| role.name}.join(", ") : []
end