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

Instance Method Details

#cms_toolbarObject

Do not show the toolbar on Acts::As::ContentPages



22
23
24
# File 'lib/cms/acts/content_page.rb', line 22

def cms_toolbar
  ""
end

#current_pageObject

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