app/presenters/hyku/menu_presenter.rb
# Returns true if the current controller happens to be one of the controllers that deals
# with roles and permissions.  This is used to keep the parent section on the sidebar open.
Returns true if the current controller happens to be one of the controllers that deals
with roles and permissions.  This is used to keep the parent section on the sidebar open.
Returns true if the current controller happens to be one of the controllers that deals with roles and permissions . This is used to keep the parent section on the sidebar open .
def roles_and_permissions_section?
      case controller
      when Admin::UsersController, RolesController
        true
      else
        false
      end
    end
def roles_and_permissions_section? case controller when Admin :: UsersController , RolesController true else false end end
Returns true if the current controller happens to be one of the controllers that deals
with roles and permissions.
Returns true if the current controller happens to be one of the controllers that deals with roles and permissions .
# we're using a case here because we need to differentiate UsersControllers # in different namespaces (Hyrax & Admin)