Ensure #caches_action works in test suite

This commit is contained in:
Matt-Yorkley
2020-05-06 12:24:33 +02:00
parent 4aac97c985
commit 9c24c1cd05

View File

@@ -13,7 +13,7 @@ module ApiActionCaching
# These configs are not assigned to the controller automatically with ActionController::Metal
self.cache_store = Rails.configuration.cache_store
self.perform_caching = ActionController::Base.perform_caching
self.perform_caching = true
# ActionController::Caching asks for a controller's layout, but they're not used in the API
layout false