Module: ActionController::Caching::Actions::ClassMethods
- Defined in:
- actionpack/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.
93 94 95 96 97 98 99 100 101 |
# File 'actionpack/lib/action_controller/caching/actions.rb', line 93 def caches_action(*actions) return unless cache_configured? = actions. [:layout] = true unless .key?(:layout) = .extract!(:if, :unless).merge(:only => actions) = .extract!(:layout, :cache_path).merge(:store_options => ) around_filter ActionCacheFilter.new(), end |