aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract_unit.rb
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2018-03-31 15:26:46 +0100
committerEugene Kenny <elkenny@gmail.com>2018-03-31 15:26:46 +0100
commit726e21e86ef092ebf8199041ba24ba492baca27f (patch)
treee9e5712112cfb07bcec99248ed4f57ab1340329d /actionpack/test/abstract_unit.rb
parentf4680e492331ccf205ca6cc77d9cdf12d315deb0 (diff)
downloadrails-726e21e86ef092ebf8199041ba24ba492baca27f.tar.gz
rails-726e21e86ef092ebf8199041ba24ba492baca27f.tar.bz2
rails-726e21e86ef092ebf8199041ba24ba492baca27f.zip
Fix two-level database configurations with URLs
An entry in `ActiveRecord::Base.configurations` can either be a connection spec ("two-level") or a hash of specs ("three-level"). We were detecting two-level configurations by looking for the `database` key, but the database can also be specified as part of the `url` key, which meant we incorrectly treated those configurations as three-level.
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
0 files changed, 0 insertions, 0 deletions