提交 8c26cd5d 编写于 作者: A Aaron Patterson

Exceptions should read from the spec configu

上级 d4d99bbc
...@@ -127,7 +127,7 @@ def self.establish_connection(spec = ENV["DATABASE_URL"]) ...@@ -127,7 +127,7 @@ def self.establish_connection(spec = ENV["DATABASE_URL"])
spec = resolver.spec spec = resolver.spec
unless respond_to?(spec.adapter_method) 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 end
remove_connection remove_connection
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册