Module: Blush::ViewContext
- Defined in:
- lib/blush/view_context.rb
Overview
Hooks into controllers and mailers to get the curret view context
Instance Method Summary collapse
-
#activate_blush ⇒ Object
Sets the cached view_context.
-
#view_context ⇒ Object
Taps into the call to view_context to caches it.
Instance Method Details
#activate_blush ⇒ Object
Sets the cached view_context
16 17 18 |
# File 'lib/blush/view_context.rb', line 16 def activate_blush Blush.view_context = view_context end |
#view_context ⇒ Object
Taps into the call to view_context to caches it
8 9 10 11 12 |
# File 'lib/blush/view_context.rb', line 8 def view_context super.tap do |context| Blush.view_context = context end end |