mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Exceptions should read from the spec configu
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user