Module: Spree::Admin::UsersHelper

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

Instance Method Summary collapse

Instance Method Details

#list_roles(user) ⇒ Object



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

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