Permalink
Browse files

clarify which url would be used to cache a page when options are not …

…provided to #cache_page to determine that url
  • Loading branch information...
1 parent eccd5cb commit 2fd1f2e84319c0796ba6887435e6cf172f715da7 @mjankowski mjankowski committed Jun 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/caching/pages.rb
@@ -133,8 +133,8 @@ def expire_page(options = {})
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?

0 comments on commit 2fd1f2e

Please sign in to comment.