Skip to content

Commit ae7e03d

Browse files
vinistockst0012
andauthored
Use join instead of sub
Co-authored-by: Stan Lo <[email protected]>
1 parent 73d14b0 commit ae7e03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_lsp/ruby_lsp_rails/rails_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize
2424
project_root = Pathname.new(ENV["BUNDLE_GEMFILE"]).dirname
2525

2626
if project_root.basename.to_s == ".ruby-lsp"
27-
project_root = project_root.sub("/.ruby-lsp", "")
27+
project_root = project_root.join("../")
2828
end
2929

3030
dummy_path = File.join(project_root, "test", "dummy")

0 commit comments

Comments
 (0)