Module: ActiveAdmin::Cms::ControllerExtensions::ClassMethods

Includes:
Utility::ClassLevelInheritableAttributes
Defined in:
lib/active_admin/cms/controller_extensions.rb

Instance Method Summary collapse

Methods included from Utility::ClassLevelInheritableAttributes

included

Instance Method Details

#cms_for(page_class) ⇒ Object



8
9
10
# File 'lib/active_admin/cms/controller_extensions.rb', line 8

def cms_for page_class
  @current_page_class = page_class
end

#current_page_classObject



12
13
14
# File 'lib/active_admin/cms/controller_extensions.rb', line 12

def current_page_class
  @current_page_class ||= ActiveAdmin::Cms::Page
end