aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2011-06-26 19:44:55 -0400
committerMatt Jankowski <mjankowski@thoughtbot.com>2011-06-26 19:44:55 -0400
commit2fd1f2e84319c0796ba6887435e6cf172f715da7 (patch)
tree9267e4548e2dd2b6364a4f8f79f980b70b456bb4
parenteccd5cb6108a7bbddffd8d97be46d4ee06cac150 (diff)
downloadrails-2fd1f2e84319c0796ba6887435e6cf172f715da7.tar.gz
rails-2fd1f2e84319c0796ba6887435e6cf172f715da7.tar.bz2
rails-2fd1f2e84319c0796ba6887435e6cf172f715da7.zip
clarify which url would be used to cache a page when options are not provided to #cache_page to determine that url
-rw-r--r--actionpack/lib/action_controller/caching/pages.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching/pages.rb b/actionpack/lib/action_controller/caching/pages.rb
index 9ea2ab0056..496390402b 100644
--- a/actionpack/lib/action_controller/caching/pages.rb
+++ b/actionpack/lib/action_controller/caching/pages.rb
@@ -133,8 +133,8 @@ module ActionController #:nodoc:
end
end
- # Manually cache the +content+ in the key determined by +options+. If no content is provided, the contents of response.body is used
- # If no options are provided, the requested url is used. Example:
+ # Manually cache the +content+ in the key determined by +options+. If no content is provided, the contents of response.body is used.
+ # If no options are provided, the url of the current request being handled is used. Example:
# cache_page "I'm the cached content", :controller => "lists", :action => "show"
def cache_page(content = nil, options = nil)
return unless self.class.perform_caching && caching_allowed?