Module: Rendition::ViewContextFilter
- Defined in:
- lib/rendition/view_context.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(source) ⇒ Object
17 18 19 |
# File 'lib/rendition/view_context.rb', line 17 def self.included(source) source.send(:before_filter, :set_current_view_context) if source.respond_to?(:before_filter) end |
Instance Method Details
#set_current_view_context ⇒ Object
13 14 15 |
# File 'lib/rendition/view_context.rb', line 13 def set_current_view_context Rendition::ViewContext.current = self.view_context end |