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
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ module ActiveRecord
# }
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"