Method: ExpressUi::ApplicationHelper#user_role_classes

Defined in:
app/helpers/express_ui/application_helper.rb

#user_role_classesObject

This only works for controllers within this engine. (eg test/dummy) Put this method in your application_helper.rb and customize it to your purpose.



32
33
34
# File 'app/helpers/express_ui/application_helper.rb', line 32

def user_role_classes
  return "role-user" if defined?(current_user) && current_user.present?
end