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 authenticate_active_admin_user
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.nil? end
def only_render_implemented_actions
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. Becuase Active
def only_render_implemented_actions raise AbstractController::ActionNotFound unless action_methods.include?(params[:action]) end