1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix missing require of reverse_merge extension

The private method `#raw_config` in `ConnectionUrlResolver` uses
`Hash#reverse_merge`, which is an `ActiveSupport` core extension.

This fixes an error

    NoMethodError: undefined method `reverse_merge' for {}:Hash

in code that uses `ActiveRecord` without having previously loaded the
`reverse_merge`.
This commit is contained in:
Hordur Freyr Yngvason 2022-01-21 15:12:34 -05:00
parent 3f13828392
commit fad0fcc65b

View file

@ -2,6 +2,7 @@
require "uri"
require "active_support/core_ext/enumerable"
require "active_support/core_ext/hash/reverse_merge"
module ActiveRecord
class DatabaseConfigurations