Permalink
Browse files

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

  • Loading branch information...
1 parent 594b749 commit 76cebf2e5364fd929f60379be636f525c6473dcc @josevalim josevalim committed May 24, 2011
Showing with 3 additions and 1 deletion.
  1. +0 −1 railties/lib/rails/commands/application.rb
  2. +3 −0 railties/lib/rails/commands/plugin_new.rb
View
1 railties/lib/rails/commands/application.rb
@@ -12,7 +12,6 @@
end
require 'rubygems' if ARGV.include?("--dev")
-
require 'rails/generators'
require 'rails/generators/rails/app/app_generator'
View
3 railties/lib/rails/commands/plugin_new.rb
@@ -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

0 comments on commit 76cebf2

Please sign in to comment.