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

Defined in:
lib/action_controller/caching.rb

Instance Method Summary collapse

Instance Method Details

#caches_action(*actions) ⇒ Object

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



207
208
209
210
# File 'lib/action_controller/caching.rb', line 207

def caches_action(*actions)
  return unless perform_caching
  around_filter(ActionCacheFilter.new(*actions))
end