From ab4e1e808d1a042a311525c5cfd0fc409d62f625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Mon, 19 Aug 2024 14:49:59 +0200 Subject: [PATCH] Call `clear_active_connections!` on the connection handler Active Record 7.2 removed the deprecated `ActiveRecord::Base.clear_active_connections!` delegate method. --- lib/crono/job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crono/job.rb b/lib/crono/job.rb index 872f68e..e31cec1 100644 --- a/lib/crono/job.rb +++ b/lib/crono/job.rb @@ -47,7 +47,7 @@ module Crono @semaphore.synchronize do update_model clear_job_log - ActiveRecord::Base.clear_active_connections! + ActiveRecord::Base.connection_handler.clear_active_connections! end end