Document caches_action. Closes #5419.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2007-05-19 22:07:30 +00:00
parent 055ff9f418
commit ab3d187943
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
*SVN*
* Document caches_action. #5419 [Jarkko Laine]
* Update to Prototype 1.5.1. [Sam Stephenson]
* Allow routes to be decalred under namespaces [Tobias Luetke]:

View File

@@ -180,7 +180,9 @@ module ActionController #:nodoc:
base.send(:attr_accessor, :rendered_action_cache)
end
module ClassMethods #:nodoc:
module ClassMethods
# Declares that +actions+ should be cached.
# See ActionController::Caching::Actions for details.
def caches_action(*actions)
return unless perform_caching
around_filter(ActionCacheFilter.new(*actions))