Module: ActionController::Caching::Actions::ClassMethods
- Defined in:
- lib/action_controller/caching/actions.rb
Instance Method Summary collapse
-
#caches_action(*actions) ⇒ Object
Declares that
actions
should be cached.
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? = actions. around_filter(ActionCacheFilter.new(:cache_path => .delete(:cache_path)), {:only => actions}.merge()) end |