aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-27 20:40:10 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-27 20:40:10 +0000
commit12e1eae87e517d844a03053c12a5eec6ab2719ce (patch)
treef70da5a16a6f0d3cc63aca2b9abbadb03d97391c /railties/bin
parentf46515619ff84547d4b24f34bb197685a6a58d0f (diff)
downloadrails-12e1eae87e517d844a03053c12a5eec6ab2719ce.tar.gz
rails-12e1eae87e517d844a03053c12a5eec6ab2719ce.tar.bz2
rails-12e1eae87e517d844a03053c12a5eec6ab2719ce.zip
Added early failure if the Ruby version isn't 1.8.2 or above #735
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/bin')
-rwxr-xr-xrailties/bin/rails5
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/bin/rails b/railties/bin/rails
index b3a25d6d59..4fba694d1f 100755
--- a/railties/bin/rails
+++ b/railties/bin/rails
@@ -1,5 +1,8 @@
#!/usr/local/bin/ruby
+
+puts "Rails requires Ruby 1.8.2" and exit if RUBY_VERSION < "1.8.2"
+
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')
+Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app') \ No newline at end of file