Permalink
Browse files

Make sure the alias statement only executes if there is not already a…

…n alias in place
1 parent 074161f commit d508822f9af75b72164e1fa375d8ad9b2ffb72dc @sandlerr sandlerr committed with mislav Oct 26, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 rbenv.d/exec/gem-rehash/rubygems_plugin.rb
@@ -10,7 +10,7 @@
end
end
-if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install)
+if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install) && !Bundler::Installer.respond_to?(:install_without_rbenv_rehash)
Bundler::Installer.class_eval do
class << self
alias install_without_rbenv_rehash install

0 comments on commit d508822

Please sign in to comment.