diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-25 01:26:25 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-25 01:27:00 +0200 |
commit | 76cebf2e5364fd929f60379be636f525c6473dcc (patch) | |
tree | d3059878dc2c886aa545a91dedc1d4c73ba1982f /railties/lib | |
parent | 594b749f3c81102a1f89480d0f8f10b464b895a7 (diff) | |
download | rails-76cebf2e5364fd929f60379be636f525c6473dcc.tar.gz rails-76cebf2e5364fd929f60379be636f525c6473dcc.tar.bz2 rails-76cebf2e5364fd929f60379be636f525c6473dcc.zip |
Actually this file may be invoked directly as well with --dev.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/application.rb | 1 | ||||
-rw-r--r-- | railties/lib/rails/commands/plugin_new.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/application.rb b/railties/lib/rails/commands/application.rb index f3fa1fd54d..1cf23a8b92 100644 --- a/railties/lib/rails/commands/application.rb +++ b/railties/lib/rails/commands/application.rb @@ -12,7 +12,6 @@ else end require 'rubygems' if ARGV.include?("--dev") - require 'rails/generators' require 'rails/generators/rails/app/app_generator' diff --git a/railties/lib/rails/commands/plugin_new.rb b/railties/lib/rails/commands/plugin_new.rb index 20a0334945..0287ba0638 100644 --- a/railties/lib/rails/commands/plugin_new.rb +++ b/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
\ No newline at end of file |