Namespace
Module
- AbstractController::Caching::ClassMethods
- AbstractController::Caching::ConfigMethods
- AbstractController::Caching::Fragments
Methods
Included Modules
Instance Public methods
view_cache_dependencies()
          
          
          
          
          
            📝 Source code
# File actionpack/lib/abstract_controller/caching.rb, line 57
def view_cache_dependencies
  self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
endInstance Private methods
cache(key, options = {}, &block)
          Convenience accessor.
📝 Source code
# File actionpack/lib/abstract_controller/caching.rb, line 63
def cache(key, options = {}, &block) # :doc:
  if cache_configured?
    cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
  else
    yield
  end
end