instance method disable_cache

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.1.12

Signature

disable_cache()

Temporary skip passing the details_key forward.

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

Defined in actionpack/lib/action_view/lookup_context.rb line 154 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::LookupContext::Details

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close