From d0f98420ea0fd71d09d11017762d863efe6f0b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 4 Feb 2010 14:05:13 +0100 Subject: Automatically require rubygems when --dev flag is given. --- railties/lib/rails/commands/application.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/rails/commands/application.rb b/railties/lib/rails/commands/application.rb index 0f09e7eafb..fe2f89ee98 100644 --- a/railties/lib/rails/commands/application.rb +++ b/railties/lib/rails/commands/application.rb @@ -4,7 +4,8 @@ if %w(--version -v).include? ARGV.first exit(0) end -ARGV << "--help" if ARGV.empty? +ARGV << "--help" if ARGV.empty? +require 'rubygems' if ARGV.include?("--dev") require 'rails/generators' require 'generators/rails/app/app_generator' -- cgit v1.2.3