edge badge
Namespace
Methods
C
V
Included Modules
Instance Public methods
view_cache_dependencies()
# File actionpack/lib/abstract_controller/caching.rb, line 51
def view_cache_dependencies
  self.class._view_cache_dependencies.map { |dep| instance_exec(&dep) }.compact
end
Instance Private methods
cache(key, options = {}, &block)

Convenience accessor.

# File actionpack/lib/abstract_controller/caching.rb, line 57
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