Class: ActiveAdmin::Views::Pages::Page
- Defined in:
- lib/active_admin/views/pages/page.rb
Instance Method Summary collapse
- #main_content ⇒ Object
- #page_presenter ⇒ Object protected
- #title ⇒ Object protected
Methods inherited from Base
Instance Method Details
#main_content ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/active_admin/views/pages/page.rb', line 6 def main_content if page_presenter.block instance_exec &page_presenter.block else nil end end |
#page_presenter ⇒ Object (protected)
16 17 18 |
# File 'lib/active_admin/views/pages/page.rb', line 16 def page_presenter active_admin_config.get_page_presenter(:index) || ActiveAdmin::PagePresenter.new end |
#title ⇒ Object (protected)
20 21 22 23 24 25 26 |
# File 'lib/active_admin/views/pages/page.rb', line 20 def title if page_presenter[:title] render_or_call_method_or_proc_on self, page_presenter[:title] else active_admin_config.name end end |