1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Proc objects for caches_page no need controller object

This commit is contained in:
Alexey Vakhov 2012-03-27 11:54:45 +04:00
parent 0c5ca0747f
commit fbccdf9a96

View file

@ -99,7 +99,7 @@ module ActionController #:nodoc:
# caches_page :index # caches_page :index
# #
# # cache the index action except for JSON requests # # 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 # # don't gzip images
# caches_page :image, :gzip => false # caches_page :image, :gzip => false