class ActiveAdmin::BaseController

It implements ActiveAdmin controllers core features.
BaseController for ActiveAdmin.

def active_admin_config

def active_admin_config
  self.class.active_admin_config
end

def active_admin_namespace

def active_admin_namespace
  active_admin_config.namespace
end

def active_admin_root

def active_admin_root
  controller, action = active_admin_namespace.root_to.split "#"
  { controller: controller, action: action }
end

def authenticate_active_admin_user

Calls the authentication method as defined in ActiveAdmin.authentication_method
def authenticate_active_admin_user
  send(active_admin_namespace.authentication_method) if active_admin_namespace.authentication_method
end

def current_active_admin_user

def current_active_admin_user
  send(active_admin_namespace.current_user_method) if active_admin_namespace.current_user_method
end

def current_active_admin_user?

def current_active_admin_user?
  !!current_active_admin_user
end

def determine_active_admin_layout

that users can render any template inside Active Admin.
2. If we're rendering a custom action, we'll use the active_admin layout so
all the required layout code)
because these actions are subclasses of the Base page (which implements
1. If we're rendering a standard Active Admin action, we want layout(false)

Determine which layout to use.
def determine_active_admin_layout
  ACTIVE_ADMIN_ACTIONS.include?(params[:action].to_sym) ? false : "active_admin"
end

def only_render_implemented_actions

to check if they are implemented.
Admin allows you to not render any of the actions by using the #actions method, we need
By default Rails will render un-implemented actions when the view exists. Because Active
def only_render_implemented_actions
  raise AbstractController::ActionNotFound unless action_methods.include?(params[:action])
end