From b7512a0600458082c9b054b1b5e70d66d4df3d4b Mon Sep 17 00:00:00 2001 From: Jacopo Date: Thu, 4 Apr 2024 07:39:23 +0200 Subject: [PATCH] Remove old deprecation warning The new deprecation warning has been introduced in https://github.com/rails/rails/pull/51349 so this one is obsolete and it also ignores `config.active_record.permanent_connection_checkout` setting. --- .../connection_adapters/abstract/connection_pool.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index c0bbd6eb59b33..e012c423beb62 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -303,10 +303,6 @@ def permanent_lease? # :nodoc: end def connection - ActiveRecord.deprecator.warn(<<~MSG) - ActiveRecord::ConnectionAdapters::ConnectionPool#connection is deprecated - and will be removed in Rails 7.3. Use #lease_connection instead. - MSG lease_connection end