From 0a1f2ad4f11f004611c1379899b027d86bc99304 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Thu, 20 Oct 2022 11:19:18 -0400 Subject: [PATCH] Fix missed deprecations In #46274 I deprecated delegating to the connection handler but missed these two calls. --- activerecord/lib/active_record/railtie.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index d057851595..d8bf117229 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -324,8 +324,8 @@ class Railtie < Rails::Railtie # :nodoc: # this connection is trivial: the rest of the pool would need to be # populated anyway. - clear_active_connections!(:all) - flush_idle_connections!(:all) + connection_handler.clear_active_connections!(:all) + connection_handler.flush_idle_connections!(:all) end end end