Permalink
Browse files

Exceptions should read from the spec configu

  • Loading branch information...
1 parent d4d99bb commit 8c26cd5d97be771c4c7e1cc8b1eaaf60d4dde692 @tenderlove tenderlove committed Dec 8, 2011
@@ -127,7 +127,7 @@ def self.establish_connection(spec = ENV["DATABASE_URL"])
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

0 comments on commit 8c26cd5

Please sign in to comment.