Methods
Instance Public methods
Declares that actions should be cached. See ActionController::Caching::Actions for details.
# File actionpack/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