Remove deprecated `ActiveRecord::Base.connection_config`
This commit is contained in:
parent
50ec25b506
commit
54ddb3be31
|
@ -1,3 +1,7 @@
|
|||
* Remove deprecated `ActiveRecord::Base.connection_config`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
||||
* Filter attributes in SQL logs
|
||||
|
||||
Previously, SQL queries in logs containing `ActiveRecord::Base.filter_attributes` were not filtered.
|
||||
|
|
|
@ -296,17 +296,6 @@ module ActiveRecord
|
|||
self == Base || application_record_class?
|
||||
end
|
||||
|
||||
# Returns the configuration of the associated connection as a hash:
|
||||
#
|
||||
# ActiveRecord::Base.connection_config
|
||||
# # => {pool: 5, timeout: 5000, database: "db/development.sqlite3", adapter: "sqlite3"}
|
||||
#
|
||||
# Please use only for reading.
|
||||
def connection_config
|
||||
connection_pool.db_config.configuration_hash
|
||||
end
|
||||
deprecate connection_config: "Use connection_db_config instead"
|
||||
|
||||
# Returns the db_config object from the associated connection:
|
||||
#
|
||||
# ActiveRecord::Base.connection_db_config
|
||||
|
|
|
@ -254,6 +254,8 @@ Please refer to the [Changelog][active-job] for detailed changes.
|
|||
|
||||
* Remove deprecated `:return_false_on_aborted_enqueue` option.
|
||||
|
||||
* Remove deprecated `ActiveRecord::Base.connection_config`.
|
||||
|
||||
### Deprecations
|
||||
|
||||
* Deprecated `Rails.config.active_job.skip_after_callbacks_if_terminated`.
|
||||
|
|
Loading…
Reference in New Issue