From c4663e98872dbdfc59aa08b6df6b002f08143d4b Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Thu, 23 Nov 2023 11:07:58 +0100 Subject: [PATCH] Fix another Active Record deprecation --- test/fetch_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fetch_test.rb b/test/fetch_test.rb index 0de80744..7c11297c 100644 --- a/test/fetch_test.rb +++ b/test/fetch_test.rb @@ -282,7 +282,7 @@ def test_fetch_cache_hit_does_not_checkout_database_connection @record.save! record = Item.fetch(@record.id) - ActiveRecord::Base.clear_active_connections!(ActiveRecord::Base.current_role) + ActiveRecord::Base.connection_handler.clear_active_connections!(ActiveRecord::Base.current_role) assert_equal(record, Item.fetch(@record.id))