class ActiveAdmin::BaseController
def determine_active_admin_layout
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