2010-02-02 18:50:56 -05:00
|
|
|
if File.exists?(Dir.getwd + '/script/rails')
|
|
|
|
exec(Dir.getwd + '/script/rails', *ARGV)
|
|
|
|
else
|
2010-02-03 12:49:47 -05:00
|
|
|
railties_path = File.expand_path('../../lib', __FILE__)
|
|
|
|
$:.unshift(railties_path) if File.directory?(railties_path) && !$:.include?(railties_path)
|
2009-09-24 17:01:31 -04:00
|
|
|
|
2010-02-03 12:49:47 -05:00
|
|
|
require 'rails/ruby_version_check'
|
2010-02-02 18:50:56 -05:00
|
|
|
Signal.trap("INT") { puts; exit }
|
2005-05-21 07:05:18 -04:00
|
|
|
|
2010-02-03 12:49:47 -05:00
|
|
|
require 'rails/commands/application'
|
2010-02-02 18:50:56 -05:00
|
|
|
end
|