mirror of https://github.com/rails/rails
use the uri parser so that newer version of Ruby work
This commit is contained in:
parent
69adfc9de6
commit
399f5f6346
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue