mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use the uri parser so that newer version of Ruby work
This commit is contained in:
parent
69adfc9de6
commit
399f5f6346
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue