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

Defined in:
lib/interlock/action_controller.rb

Instance Method Summary collapse

Instance Method Details

#caches_action(*actions) ⇒ Object



237
238
239
240
241
# File 'lib/interlock/action_controller.rb', line 237

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