diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-08 11:18:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-08 15:14:07 -0800 |
commit | 8c26cd5d97be771c4c7e1cc8b1eaaf60d4dde692 (patch) | |
tree | b086d083c7908ee1f83d157c5dd5315c4a194879 | |
parent | d4d99bbc87021fad1df516cb24912973d186279d (diff) | |
download | rails-8c26cd5d97be771c4c7e1cc8b1eaaf60d4dde692.tar.gz rails-8c26cd5d97be771c4c7e1cc8b1eaaf60d4dde692.tar.bz2 rails-8c26cd5d97be771c4c7e1cc8b1eaaf60d4dde692.zip |
Exceptions should read from the spec configu
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb index ca9fb11e95..7145dc0692 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb @@ -127,7 +127,7 @@ module ActiveRecord spec = resolver.spec unless respond_to?(spec.adapter_method) - raise AdapterNotFound, "database configuration specifies nonexistent #{spec[:adapter]} adapter" + raise AdapterNotFound, "database configuration specifies nonexistent #{spec.config[:adapter]} adapter" end remove_connection |