Add caching behavior on top of Details.

Methods

Attributes

[RW] cache

Instance Public methods

disable_cache()

Temporary skip passing the details_key forward.

# File actionview/lib/action_view/lookup_context.rb, line 104
def disable_cache
  old_value, @cache = @cache, false
  yield
ensure
  @cache = old_value
end

Instance Private methods

_set_detail(key, value)

# File actionview/lib/action_view/lookup_context.rb, line 112
def _set_detail(key, value) # :doc:
  @details = @details.dup if @digest_cache || @details_key
  @digest_cache = nil
  @details_key = nil
  @details[key] = value
end