mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
extract path into variable
This commit is contained in:
parent
6b3979d93b
commit
a85729c5f1
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
if File.exists?(File.join(File.expand_path('../../..', __FILE__), '.git'))
|
||||
git_path = File.join(File.expand_path('../../..', __FILE__), '.git')
|
||||
|
||||
if File.exists?(git_path)
|
||||
railties_path = File.expand_path('../../lib', __FILE__)
|
||||
$:.unshift(railties_path)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue