summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-24 19:45:53 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-24 19:45:53 +0200
commit42363091dafb843a6ee40a7dfebd387699272271 (patch)
tree17dfeac281449cc5ae95b204200a5f2d7a10a73a
parenta8874423f347efa52d69b332cc855def812e9b5b (diff)
downloadbundler-42363091dafb843a6ee40a7dfebd387699272271.tar.gz
Reuse `root` method
-rw-r--r--lib/bundler/source/path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb
index c1d25fc4da..05d4d78bb5 100644
--- a/lib/bundler/source/path.rb
+++ b/lib/bundler/source/path.rb
@@ -20,7 +20,7 @@ module Bundler
@allow_cached = false
@allow_remote = false
- @root_path = options["root_path"] || Bundler.root
+ @root_path = options["root_path"] || root
if options["path"]
@path = Pathname.new(options["path"])
@@ -136,7 +136,7 @@ module Bundler
def lockfile_path
return relative_path(original_path) if original_path.absolute?
- expand(original_path).relative_path_from(Bundler.root)
+ expand(original_path).relative_path_from(root)
end
def app_cache_path(custom_path = nil)