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:
parent
8fff05ad32
commit
c4bc360e4e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user