diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-04 14:05:13 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-04 14:05:13 +0100 |
commit | d0f98420ea0fd71d09d11017762d863efe6f0b11 (patch) | |
tree | 7beee67e74a19d94989ed14b3063d777f96cbdaa /railties | |
parent | 79376e3c9d0838ff1562e0a46239c6b0337058b3 (diff) | |
download | rails-d0f98420ea0fd71d09d11017762d863efe6f0b11.tar.gz rails-d0f98420ea0fd71d09d11017762d863efe6f0b11.tar.bz2 rails-d0f98420ea0fd71d09d11017762d863efe6f0b11.zip |
Automatically require rubygems when --dev flag is given.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/commands/application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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' |