rails/activerecord/lib
Jean Boussier 7263da542b Deprecate ConnectionPool#connection
Replaced by `#lease_connection` to better reflect what it does.

`ActiveRecord::Base#connection` is deprecated in the same way
but without a removal timeline nor a deprecation warning.

Inside the Active Record test suite, we do remove `Base.connection`
to ensure it's not used internally.

Some callsites have been converted to use `with_connection`,
some other have been more simply migrated to `lease_connection`
and will serve as a list of callsites to convert for
https://github.com/rails/rails/pull/50793
2024-03-01 14:32:55 +01:00
..
active_record Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
arel Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
rails/generators Simplify the implementation to register the correct source_path for the migration template 2023-05-24 22:54:12 +00:00
active_record.rb Remove deprecated behavior that would rollback a transaction block when exited using return, break or throw. 2024-02-20 21:56:51 +00:00
arel.rb Fix a code block in the Arel documentation 2023-05-06 18:57:12 -07:00