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

Actually this file may be invoked directly as well with --dev.

This commit is contained in:
José Valim 2011-05-25 01:26:25 +02:00
parent 594b749f3c
commit 76cebf2e53
2 changed files with 3 additions and 1 deletions

View file

@ -12,7 +12,6 @@ else
end
require 'rubygems' if ARGV.include?("--dev")
require 'rails/generators'
require 'rails/generators/rails/app/app_generator'

View file

@ -1,8 +1,11 @@
require 'rubygems' if ARGV.include?("--dev")
if ARGV.first != "new"
ARGV[0] = "--help"
else
ARGV.shift
end
require 'rails/generators'
require 'rails/generators/rails/plugin_new/plugin_new_generator'
Rails::Generators::PluginNewGenerator.start