app/presenters/hyku/menu_presenter.rb
# Returns true if the current controller happens to be one of the controllers that deals
# with user activity  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 user activity  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 user activity This is used to keep the parent section on the sidebar open .
def user_activity_section?
      case controller
      when Hyrax::UsersController, Hyrax::MailboxController, Hyrax::TransfersController
        true
      else
        false
      end
    end
def user_activity_section? case controller when Hyrax :: UsersController , Hyrax :: MailboxController , Hyrax :: TransfersController true else false end end
Returns true if the current controller happens to be one of the controllers that deals
with user activity  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 user activity This is used to keep the parent section on the sidebar open .
# we're using a case here because we need to differentiate UsersControllers # in different namespaces (Hyrax & Admin)