Skip to content

Commit

Permalink
Proc objects for caches_page no need controller object
Browse files Browse the repository at this point in the history
  • Loading branch information
avakhov committed Mar 27, 2012
1 parent 0c5ca07 commit fbccdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/caching/pages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbccdf9

Please sign in to comment.