lib/rom/sql/gateway.rb in rom-sql-2.2.1 vs lib/rom/sql/gateway.rb in rom-sql-2.3.0
- old
+ new
@@ -211,9 +211,11 @@
# @api private
def connect(uri, *args)
case uri
when ::Sequel::Database
uri
+ when Hash
+ ::Sequel.connect(uri, *args)
else
::Sequel.connect(uri.to_s, *args)
end
end