提交 399f5f63 编写于 作者: A Aaron Patterson

use the uri parser so that newer version of Ruby work

上级 69adfc9d
......@@ -32,7 +32,7 @@ class ConnectionUrlResolver # :nodoc:
# }
def initialize(url)
raise "Database URL cannot be empty" if url.blank?
@uri = URI.parse(url)
@uri = uri_parser.parse(url)
@adapter = @uri.scheme.gsub('-', '_')
@adapter = "postgresql" if @adapter == "postgres"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册