diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-08-07 12:10:31 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-08-07 12:10:31 -0700 |
commit | 399f5f6346829210b4d58ed5f7c6d4d73ef67737 (patch) | |
tree | 303a13dcc0e4698910bc3dd8fc5bc1c2bf724788 /activerecord/lib | |
parent | 69adfc9de6961e368f9023ab1d256affa49e913e (diff) | |
download | rails-399f5f6346829210b4d58ed5f7c6d4d73ef67737.tar.gz rails-399f5f6346829210b4d58ed5f7c6d4d73ef67737.tar.bz2 rails-399f5f6346829210b4d58ed5f7c6d4d73ef67737.zip |
use the uri parser so that newer version of Ruby work
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/connection_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb index 5693031053..d28a54b8f9 100644 --- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb @@ -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" |