mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-22 16:58:42 +02:00
Call clear_active_connections! on the connection handler
Active Record 7.2 removed the deprecated `ActiveRecord::Base.clear_active_connections!` delegate method.
This commit is contained in:
@@ -47,7 +47,7 @@ module Crono
|
|||||||
@semaphore.synchronize do
|
@semaphore.synchronize do
|
||||||
update_model
|
update_model
|
||||||
clear_job_log
|
clear_job_log
|
||||||
ActiveRecord::Base.clear_active_connections!
|
ActiveRecord::Base.connection_handler.clear_active_connections!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user