1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Automatically require rubygems when --dev flag is given.

This commit is contained in:
José Valim 2010-02-04 14:05:13 +01:00
parent 79376e3c9d
commit d0f98420ea

View file

@ -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'