Skip to content

Commit 2fc5ff6

Browse files
author
Steve Gray
committed
Include module in Cms::Acts::ContentPage needed for 'cms_site?' method
This fixes a bug found in CME project: Issues #1717 and #1843
1 parent 7ce1eab commit 2fc5ff6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/cms/acts/content_page.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Minor Issue:
1212
# Error handling for Page not found behaves slightly differently than ContentController currently. If the user is logged
1313
# in as an editor, they will get a 500 page rather than 404. This would require reworking how the error processing
14-
# works in Cms::ContentRenderingSupport.
14+
# works in Cms::ContentRenderingSupport.
1515
module Cms
1616
module Acts
1717

@@ -22,7 +22,7 @@ module PageHelper
2222
def cms_toolbar
2323
""
2424
end
25-
25+
2626
# If we are showing an error page, use that. Otherwise, just a blank page object that has a default title.
2727
def current_page
2828
super ? super : OpenStruct.new(page_title: controller.class.name.gsub("Controller", ""))
@@ -33,6 +33,7 @@ module ContentPage
3333
def self.included(base)
3434
base.send :include, Cms::ContentRenderingSupport
3535
base.send :include, Cms::Authentication::Controller
36+
base.send :include, Cms::DomainSupport
3637
base.extend ClassMethods
3738

3839
base.helper Cms::PageHelper

0 commit comments

Comments
 (0)