summaryrefslogtreecommitdiff
path: root/lib/bundler/plugin/installer/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/plugin/installer/path.rb')
-rw-r--r--lib/bundler/plugin/installer/path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/plugin/installer/path.rb b/lib/bundler/plugin/installer/path.rb
index 1b60724b5e..58a8fa7426 100644
--- a/lib/bundler/plugin/installer/path.rb
+++ b/lib/bundler/plugin/installer/path.rb
@@ -5,7 +5,7 @@ module Bundler
class Installer
class Path < Bundler::Source::Path
def root
- Plugin.root
+ SharedHelpers.in_bundle? ? Bundler.root : Plugin.root
end
def generate_bin(spec, disable_extensions = false)