We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f7a774 commit 68b4ee9Copy full SHA for 68b4ee9
lib/rubygems/installer.rb
@@ -684,7 +684,7 @@ def process_options # :nodoc:
684
# * `true`: `--user-install`
685
# * `false`: `--no-user-install` and
686
# * `nil`: option was not specified
687
- if options[:user_install] || Gem.auto_user_install
+ if options[:user_install] || (options[:user_install].nil? && Gem.auto_user_install)
688
@gem_home = Gem.user_dir
689
end
690
0 commit comments