aboutsummaryrefslogblamecommitdiffstats
path: root/railties/bin/rails
blob: 72c47b533fcc8c1ba824288e235269d23049db28 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                            

                                                                                            
 
                                    
                                   
 
                                      
  
if File.exists?(Dir.getwd + '/script/rails')
  exec(Dir.getwd + '/script/rails', *ARGV)
else
  railties_path = File.expand_path('../../lib', __FILE__)
  $:.unshift(railties_path) if File.directory?(railties_path) && !$:.include?(railties_path)

  require 'rails/ruby_version_check'
  Signal.trap("INT") { puts; exit }

  require 'rails/commands/application'
end