From 9c24c1cd05a1e71d8c17600da2c1cc73fbf7d941 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 6 May 2020 12:24:33 +0200 Subject: [PATCH] Ensure #caches_action works in test suite --- app/models/concerns/api_action_caching.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/api_action_caching.rb b/app/models/concerns/api_action_caching.rb index 05dbc9f0d4..b3e030e408 100644 --- a/app/models/concerns/api_action_caching.rb +++ b/app/models/concerns/api_action_caching.rb @@ -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