mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Ensure #caches_action works in test suite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user