diff options
Diffstat (limited to 'railties/bin/rails')
-rwxr-xr-x | railties/bin/rails | 5 |
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 |