Module: ActionView::Helpers::CacheHelper::CachingRegistry
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | actionview/lib/action_view/helpers/cache_helper.rb |
Instance Attribute Summary
- #caching? ⇒ Boolean readonly
Instance Method Summary
Instance Attribute Details
#caching? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'actionview/lib/action_view/helpers/cache_helper.rb', line 300
def caching? ActiveSupport::IsolatedExecutionState[:action_view_caching] ||= false end
Instance Method Details
#track_caching
[ GitHub ]# File 'actionview/lib/action_view/helpers/cache_helper.rb', line 304
def track_caching caching_was = ActiveSupport::IsolatedExecutionState[:action_view_caching] ActiveSupport::IsolatedExecutionState[:action_view_caching] = true yield ensure ActiveSupport::IsolatedExecutionState[:action_view_caching] = caching_was end