Permalink
Browse files

Proc objects for caches_page no need controller object

  • Loading branch information...
1 parent 0c5ca07 commit fbccdf9a96fe952ec3f99a2fb16afbc25c568ce5 @avakhov avakhov committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/caching/pages.rb
@@ -99,7 +99,7 @@ def cache_page(content, path, extension = nil, gzip = Zlib::BEST_COMPRESSION)
# caches_page :index
#
# # cache the index action except for JSON requests
- # caches_page :index, :if => Proc.new { |c| !c.request.format.json? }
+ # caches_page :index, :if => Proc.new { !request.format.json? }
#
# # don't gzip images
# caches_page :image, :gzip => false

0 comments on commit fbccdf9

Please sign in to comment.