Module: ManageableContent::Controllers::Dsl
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/manageable_content/controllers/dsl.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#manageable_content_for(key) ⇒ Object
Retrieves the content for the current page with a given key.
-
#manageable_layout_content_for(key) ⇒ Object
Retrieves the content for the current layout with a given key.
Instance Method Details
#manageable_content_for(key) ⇒ Object
Retrieves the content for the current page with a given key.
92 93 94 |
# File 'lib/manageable_content/controllers/dsl.rb', line 92 def manageable_content_for(key) manageable_content_for_page :controller, key end |
#manageable_layout_content_for(key) ⇒ Object
Retrieves the content for the current layout with a given key.
87 88 89 |
# File 'lib/manageable_content/controllers/dsl.rb', line 87 def manageable_layout_content_for(key) manageable_content_for_page :layout, key end |