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.
106 107 108 |
# File 'lib/manageable_content/controllers/dsl.rb', line 106 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.
101 102 103 |
# File 'lib/manageable_content/controllers/dsl.rb', line 101 def manageable_layout_content_for(key) manageable_content_for_page :layout, key end |