aboutsummaryrefslogtreecommitdiffstats
path: root/railties/exe/rails
diff options
context:
space:
mode:
Diffstat (limited to 'railties/exe/rails')
-rwxr-xr-xrailties/exe/rails4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/exe/rails b/railties/exe/rails
index 7e791c1f99..a5635c2297 100755
--- a/railties/exe/rails
+++ b/railties/exe/rails
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
-git_path = File.expand_path("../../../.git", __FILE__)
+git_path = File.expand_path("../../.git", __dir__)
if File.exist?(git_path)
- railties_path = File.expand_path("../../lib", __FILE__)
+ railties_path = File.expand_path("../lib", __dir__)
$:.unshift(railties_path)
end
require "rails/cli"