Permalink
Browse files

Slicker way of quiting on less than Ruby 1.8.2

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Feb 27, 2005
1 parent 38ea84a commit 19dddf24a63bd8a715ca47955963ba77d174d830
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/bin/rails
View
@@ -1,6 +1,6 @@
#!/usr/local/bin/ruby
-puts "Rails requires Ruby 1.8.2" and exit if RUBY_VERSION < "1.8.2"
+abort "Rails requires Ruby 1.8.2" if RUBY_VERSION < "1.8.2"
require File.dirname(__FILE__) + '/../lib/rails_generator'
require 'rails_generator/scripts/generate'

0 comments on commit 19dddf2

Please sign in to comment.