module ActionView::LookupContext::DetailsCache
def _set_detail(key, value)
def _set_detail(key, value) @details = @details.dup if @details_key @details_key = nil @details[key] = value end
def details_key #:nodoc:
since the user cannot modify it explicitly.
Calculate the details key. Remove the handlers from calculation to improve performance
def details_key #:nodoc: @details_key ||= DetailsKey.get(@details) if @cache end
def disable_cache
def disable_cache old_value, @cache = @cache, false yield ensure @cache = old_value end