diff options
Diffstat (limited to 'railties/bin/rails')
-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 b32b864e8a..3fb61137a1 100755 --- a/railties/bin/rails +++ b/railties/bin/rails @@ -1,6 +1,8 @@ abort "Rails requires Ruby 1.8.2" if RUBY_VERSION < "1.8.2" +Signal.trap("INT") { puts; exit } + require File.dirname(__FILE__) + '/../lib/rails_generator' require 'rails_generator/scripts/generate' Rails::Generator::Base.use_application_sources! -Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app')
\ No newline at end of file +Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app') |