aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichiel Sikkes <michiel.sikkes@gmail.com>2013-01-28 21:17:48 +0100
committerMichiel Sikkes <michiel.sikkes@gmail.com>2013-01-28 21:17:48 +0100
commitc4bc360e4edcdf8b05e334582d4ab5bc41ed2abc (patch)
tree15960f3c32ffbd8f0ca842706c2809929ad3871f
parent8fff05ad3212e4302f186ca154a120f00d1b6abd (diff)
downloadrails-c4bc360e4edcdf8b05e334582d4ab5bc41ed2abc.tar.gz
rails-c4bc360e4edcdf8b05e334582d4ab5bc41ed2abc.tar.bz2
rails-c4bc360e4edcdf8b05e334582d4ab5bc41ed2abc.zip
Remove caching_allowed? from ActionController::Caching
Where is this used? No other code references to this method and it isn't being tested anywhere. No tests fail when commented out.
-rw-r--r--actionpack/lib/action_controller/caching.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb
index cf2cda039d..ea33d975ef 100644
--- a/actionpack/lib/action_controller/caching.rb
+++ b/actionpack/lib/action_controller/caching.rb
@@ -82,10 +82,6 @@ module ActionController
end
end
- def caching_allowed?
- request.get? && response.status == 200
- end
-
def view_cache_dependencies
self.class._view_cache_dependencies.map { |dep| instance_exec(&dep) }.compact
end