diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-27 21:16:37 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-27 21:16:37 +0000 |
commit | 19dddf24a63bd8a715ca47955963ba77d174d830 (patch) | |
tree | 8bb13213d644eaa919b526ded2735bb78f6ebe2f /railties/bin/rails | |
parent | 38ea84aab6a366a89fba83f8852b2c3b29c0cac9 (diff) | |
download | rails-19dddf24a63bd8a715ca47955963ba77d174d830.tar.gz rails-19dddf24a63bd8a715ca47955963ba77d174d830.tar.bz2 rails-19dddf24a63bd8a715ca47955963ba77d174d830.zip |
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
Diffstat (limited to 'railties/bin/rails')
-rwxr-xr-x | railties/bin/rails | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/bin/rails b/railties/bin/rails index 4fba694d1f..83300b7ef2 100755 --- a/railties/bin/rails +++ b/railties/bin/rails @@ -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' |