Class: ActiveAdmin::Views::Pages::Page

Inherits:
Base
  • Object
show all
Defined in:
lib/active_admin/views/pages/page.rb

Instance Method Summary collapse

Methods inherited from Base

#build, #html_title

Instance Method Details

#main_contentObject



7
8
9
10
11
12
13
# File 'lib/active_admin/views/pages/page.rb', line 7

def main_content
  if page_presenter.block
    instance_exec &page_presenter.block
  else
    nil
  end
end