Exceptions should read from the spec configu

This commit is contained in:
Aaron Patterson
2011-12-08 11:18:01 -08:00
parent d4d99bbc87
commit 8c26cd5d97

View File

@@ -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