diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-24 19:45:53 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-24 19:45:53 +0200 |
commit | 42363091dafb843a6ee40a7dfebd387699272271 (patch) | |
tree | 17dfeac281449cc5ae95b204200a5f2d7a10a73a | |
parent | a8874423f347efa52d69b332cc855def812e9b5b (diff) | |
download | bundler-42363091dafb843a6ee40a7dfebd387699272271.tar.gz |
Reuse `root` method
-rw-r--r-- | lib/bundler/source/path.rb | 4 |
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) |