class ActiveAdmin::Namespace

def add_current_user_to_menu(menu, priority = 10, html_options = {})

Parameters:
  • html_options (Hash) -- An options hash to pass along to link_to
  • priority (Fixnum) -- The numeric priority for the order in which it appears
  • menu (ActiveAdmin::MenuItem) -- The menu to add the logout link to
def add_current_user_to_menu(menu, priority = 10, html_options = {})
  if current_user_method
    menu.add id: 'current_user', priority: priority, html_options: html_options,
      label: -> { display_name current_active_admin_user },
      url:   -> { auto_url_for(current_active_admin_user) },
      if:    :current_active_admin_user?
  end
end