use the uri parser so that newer version of Ruby work

This commit is contained in:
Aaron Patterson 2014-08-07 12:10:31 -07:00
parent 69adfc9de6
commit 399f5f6346

@ -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"