From 01ef2c1943cd813f3fd262602f518640f66db834 Mon Sep 17 00:00:00 2001 From: Alex Johnson Date: Mon, 4 Nov 2013 17:27:23 +0530 Subject: Refactor File.expand_path usage to remove additional File.join --- railties/bin/rails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/bin/rails') diff --git a/railties/bin/rails b/railties/bin/rails index c11d65a08e..82c17cabce 100755 --- a/railties/bin/rails +++ b/railties/bin/rails @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -git_path = File.join(File.expand_path('../../..', __FILE__), '.git') +git_path = File.expand_path('../../../.git', __FILE__) if File.exist?(git_path) railties_path = File.expand_path('../../lib', __FILE__) -- cgit v1.2.3