1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Michiel Sikkes 2013-01-28 21:17:48 +01:00
parent 8fff05ad32
commit c4bc360e4e

View file

@ -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