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:
parent
0c5ca0747f
commit
fbccdf9a96
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue