1
0
Fork 0
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:
buddhamagnet 2013-04-21 23:30:16 +01:00
parent 6b3979d93b
commit a85729c5f1

View file

@ -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