diff options
Diffstat (limited to 'railties/bin')
-rwxr-xr-x | railties/bin/rails | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/bin/rails b/railties/bin/rails index a1c4faaa73..82c17cabce 100755 --- a/railties/bin/rails +++ b/railties/bin/rails @@ -1,6 +1,8 @@ #!/usr/bin/env ruby -if File.exists?(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__) $:.unshift(railties_path) end |