Skip to content

Commit 465fbd7

Browse files
committed
Remove deprecated ActiveRecord::ConnectionAdapters::ConnectionPool#connection_klass
1 parent 64cbcd7 commit 465fbd7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

activerecord/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `ActiveRecord::ConnectionAdapters::ConnectionPool#connection_klass`.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated support to apply `#connection_pool_list`, `#active_connections?`, `#clear_active_connections!`,
26
`#clear_reloadable_connections!`, `#clear_all_connections!` and `#flush_idle_connections!` to the connections pools
37
for the current role when the `role` argument isn't provided.

activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ def unpin_connection! # :nodoc:
220220
def connection_class # :nodoc:
221221
pool_config.connection_class
222222
end
223-
alias :connection_klass :connection_class
224-
deprecate :connection_klass, deprecator: ActiveRecord.deprecator
225223

226224
# Returns true if there is an open connection being used for the current thread.
227225
#

guides/source/7_2_release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
154154
`#clear_reloadable_connections!`, `#clear_all_connections!` and `#flush_idle_connections!` to the connections pools
155155
for the current role when the `role` argument isn't provided.
156156

157+
* Remove deprecated `ActiveRecord::ConnectionAdapters::ConnectionPool#connection_klass`.
158+
157159
### Deprecations
158160

159161
* Deprecate `Rails.application.config.active_record.allow_deprecated_singular_associations_name`

0 commit comments

Comments
 (0)