Module: Cms::Acts::PageHelper
- Defined in:
- lib/cms/acts/content_page.rb
Overview
Override some of the behavior defined in Cms::PageHelper so templates display correctly Rails Controllers
Instance Method Summary collapse
-
#cms_toolbar ⇒ Object
Do not show the toolbar on Acts::As::ContentPages.
-
#current_page ⇒ Object
If we are showing an error page, use that.
Instance Method Details
#cms_toolbar ⇒ Object
Do not show the toolbar on Acts::As::ContentPages
22 23 24 |
# File 'lib/cms/acts/content_page.rb', line 22 def "" end |
#current_page ⇒ Object
If we are showing an error page, use that. Otherwise, just a blank page object that has a default title.
27 28 29 |
# File 'lib/cms/acts/content_page.rb', line 27 def current_page super ? super : OpenStruct.new(page_title: controller.class.name.gsub("Controller", "")) end |