From e23542547013faa1a455d3f39a64e5d10cbb7e6f Mon Sep 17 00:00:00 2001 From: Jacopo Date: Thu, 4 Apr 2024 07:39:23 +0200 Subject: [PATCH] Remove obsolete `ConnectionPool#connection` deprecation warning Replaced by a new deprecation warning introduced in https://github.com/rails/rails/pull/51349 --- .../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