Module: TitleEstuary
- Defined in:
- lib/title_estuary.rb,
lib/title_estuary/high_voltage_support.rb,
lib/title_estuary/inherited_resources_support.rb
Overview
Defined Under Namespace
Modules: HighVoltageSupport, InheritedResourcesSupport, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
When TitleEstuary is included by a controller, this hook prevents ActionPack from using
#page_title
as an action and makes that method available to helpers and views; you may also want to include TitleEstuary::InheritedResourcesSupport and TitleEstuary::HighVoltageSupport if applicable.
Class Method Details
.included(base) ⇒ Object
When TitleEstuary is included by a controller, this hook prevents ActionPack from using #page_title
as an action and makes that method available to helpers and views; you may also want to include TitleEstuary::InheritedResourcesSupport and TitleEstuary::HighVoltageSupport if applicable.
15 16 17 18 19 |
# File 'lib/title_estuary.rb', line 15 def self.included(base) base.send :include, TitleEstuary::InstanceMethods base.hide_action(:page_title) if base.respond_to?(:hide_action) base.helper_method(:page_title, :page_title=) if base.respond_to?(:helper_method) end |