Module: ActionController::Caching::Actions::ClassMethods

Defined in:
lib/action_controller/caching/actions.rb

Instance Method Summary collapse

Instance Method Details

#caches_action(*actions) ⇒ Object

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



54
55
56
57
58
# File 'lib/action_controller/caching/actions.rb', line 54

def caches_action(*actions)
  return unless cache_configured?
  options = actions.extract_options!
  around_filter(ActionCacheFilter.new(:cache_path => options.delete(:cache_path)), {:only => actions}.merge(options))
end