Methods

Class Index [+]

Quicksearch

ActionController::Caching::Actions::ClassMethods

Public Instance Methods

caches_action(*actions) click to toggle source

Declares that actions should be cached. See ActionController::Caching::Actions for details.

     # File lib/action_controller/caching/actions.rb, line 93
 93:         def caches_action(*actions)
 94:           return unless cache_configured?
 95:           options = actions.extract_options!
 96:           options[:layout] = true unless options.key?(:layout)
 97:           filter_options = options.extract!(:if, :unless).merge(:only => actions)
 98:           cache_options  = options.extract!(:layout, :cache_path).merge(:store_options => options)
 99: 
100:           around_filter ActionCacheFilter.new(cache_options), filter_options
101:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.