From 23b3ea5324c2adab311c1eb8c2a394cef6af946b Mon Sep 17 00:00:00 2001 From: Alexey Vakhov Date: Sat, 24 Mar 2012 17:22:24 +0400 Subject: Fix AC actions caching comment --- actionpack/lib/action_controller/caching/actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/caching') diff --git a/actionpack/lib/action_controller/caching/actions.rb b/actionpack/lib/action_controller/caching/actions.rb index ba96735e56..f3ec46ce22 100644 --- a/actionpack/lib/action_controller/caching/actions.rb +++ b/actionpack/lib/action_controller/caching/actions.rb @@ -40,7 +40,7 @@ module ActionController #:nodoc: # # You can modify the default action cache path by passing a # :cache_path option. This will be passed directly to - # ActionCachePath.path_for. This is handy for actions with + # ActionCachePath.new. This is handy for actions with # multiple possible routes that should be cached differently. If a # block is given, it is called with the current controller instance. # -- cgit v1.2.3 From fbccdf9a96fe952ec3f99a2fb16afbc25c568ce5 Mon Sep 17 00:00:00 2001 From: Alexey Vakhov Date: Tue, 27 Mar 2012 11:54:45 +0400 Subject: Proc objects for caches_page no need controller object --- actionpack/lib/action_controller/caching/pages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/caching') 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 -- cgit v1.2.3