Class Index [+]

Quicksearch

ActionView::LookupContext::DetailsCache

Add caching behavior on top of Details.

Attributes

cache[RW]

Public Instance Methods

disable_cache() click to toggle source

Temporary skip passing the details_key forward.

    # File lib/action_view/lookup_context.rb, line 82
82:       def disable_cache
83:         old_value, @cache = @cache, false
84:         yield
85:       ensure
86:         @cache = old_value
87:       end

Protected Instance Methods

_set_detail(key, value) click to toggle source
    # File lib/action_view/lookup_context.rb, line 91
91:       def _set_detail(key, value)
92:         @details = @details.dup if @details_key
93:         @details_key = nil
94:         @details[key] = value
95:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.