Module: Cms::DeprecatedBehavior
- Included in:
- PageHelper
- Defined in:
- app/helpers/cms/page_helper.rb
Overview
Deprecated in 4.0. Remove in 4.1
Instance Method Summary collapse
-
#cms_toolbar ⇒ Object
deprecated
Deprecated.
This method is no longer required for BrowserCMS templates.
- #deprecated_set_page_title_usage(args) ⇒ Object
Instance Method Details
#cms_toolbar ⇒ Object
Deprecated.
This method is no longer required for BrowserCMS templates.
Add the code to render the CMS toolbar.
8 9 10 11 |
# File 'app/helpers/cms/page_helper.rb', line 8 def ActiveSupport::Deprecation.warn "The cms_toolbar helper is deprecated and no longer necessary. You can safely remove <%= cms_toolbar %> from templates.", caller return "" end |
#deprecated_set_page_title_usage(args) ⇒ Object
13 14 15 16 |
# File 'app/helpers/cms/page_helper.rb', line 13 def deprecated_set_page_title_usage(args) ActiveSupport::Deprecation.warn "Calling page_title('#{args.first}') is deprecated and will be remove in 4.1. Call use_page_title('#{args.first}') instead.", caller use_page_title args.first end |