diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2012-03-27 11:54:45 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2012-03-27 11:54:45 +0400 |
commit | fbccdf9a96fe952ec3f99a2fb16afbc25c568ce5 (patch) | |
tree | eb223f8de5fe3689b0524173d8c7a24acda5dd99 /actionpack/lib/action_controller | |
parent | 0c5ca0747f8bf0f24539be54bdb8dace9424c073 (diff) | |
download | rails-fbccdf9a96fe952ec3f99a2fb16afbc25c568ce5.tar.gz rails-fbccdf9a96fe952ec3f99a2fb16afbc25c568ce5.tar.bz2 rails-fbccdf9a96fe952ec3f99a2fb16afbc25c568ce5.zip |
Proc objects for caches_page no need controller object
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/caching/pages.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching/pages.rb b/actionpack/lib/action_controller/caching/pages.rb index 159f718029..307594d54a 100644 --- a/actionpack/lib/action_controller/caching/pages.rb +++ b/actionpack/lib/action_controller/caching/pages.rb @@ -99,7 +99,7 @@ module ActionController #:nodoc: # 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 |