Permalink
Browse files

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.
  • Loading branch information...
michiels committed Jan 28, 2013
1 parent 8fff05a commit c4bc360e4edcdf8b05e334582d4ab5bc41ed2abc
Showing with 0 additions and 4 deletions.
  1. +0 −4 actionpack/lib/action_controller/caching.rb
@@ -82,10 +82,6 @@ def view_cache_dependency(&dependency)
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

0 comments on commit c4bc360

Please sign in to comment.