Module: Contentable::Controller
- Defined in:
- lib/contentable.rb
Overview
After includng this module in the ContentItem, take the with the before filter. Or, alternatively, make a call to find_content_item yourself.
Class Method Summary collapse
-
.included(controller) ⇒ Object
Sets up before filter for us.
Class Method Details
.included(controller) ⇒ Object
Sets up before filter for us.
73 74 75 |
# File 'lib/contentable.rb', line 73 def self.included(controller) controller.before_filter :find_content_item end |