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.



180
181
182
183
184
185
# File 'lib/action_controller/caching.rb', line 180

def caches_action(*actions)
  return unless perform_caching
  action_cache_filter = ActionCacheFilter.new(*actions)
  before_filter action_cache_filter
  after_filter action_cache_filter
end