aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-02-04 14:05:13 +0100
committerJosé Valim <jose.valim@gmail.com>2010-02-04 14:05:13 +0100
commitd0f98420ea0fd71d09d11017762d863efe6f0b11 (patch)
tree7beee67e74a19d94989ed14b3063d777f96cbdaa /railties
parent79376e3c9d0838ff1562e0a46239c6b0337058b3 (diff)
downloadrails-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.rb3
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'