diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-27 21:26:37 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-27 21:26:37 +0530 |
commit | b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4 (patch) | |
tree | dd296efc489c22850d6cc7fa8d7a69da5e122b54 /actionpack/lib/action_controller | |
parent | 888fcca01b736b7f91041b7a6a1b162af6688f7a (diff) | |
parent | ae040ed6d8c48bf0cd6d5d6b434d60c9c8c27f81 (diff) | |
download | rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.tar.gz rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.tar.bz2 rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/caching/actions.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/caching/pages.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching/actions.rb b/actionpack/lib/action_controller/caching/actions.rb index ceac11bbfb..59ec197347 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 # <tt>:cache_path</tt> option. This will be passed directly to - # <tt>ActionCachePath.path_for</tt>. This is handy for actions with + # <tt>ActionCachePath.new</tt>. 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. # 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 |