Module: ActiveAdmin::ResourceController::PageConfigurations::ClassMethods

Defined in:
lib/active_admin/resource_controller/page_configurations.rb

Instance Method Summary collapse

Instance Method Details

#get_page_config(page) ⇒ Object



18
19
20
# File 'lib/active_admin/resource_controller/page_configurations.rb', line 18

def get_page_config(page)
  active_admin_config.page_configs[page]
end

#reset_page_config!(page) ⇒ Object



22
23
24
# File 'lib/active_admin/resource_controller/page_configurations.rb', line 22

def reset_page_config!(page)
  active_admin_config.page_configs[page] = nil
end

#set_page_config(page, options, &block) ⇒ Object



14
15
16
# File 'lib/active_admin/resource_controller/page_configurations.rb', line 14

def set_page_config(page, options, &block)
  active_admin_config.page_configs[page] = ActiveAdmin::PageConfig.new(options, &block)
end