diff options
author | José Valim <jose.valim@gmail.com> | 2010-11-17 23:31:29 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-17 23:32:19 +0100 |
commit | 7b2f2c8b477adae9bc7243fb9c895f8a823188a3 (patch) | |
tree | abaea7cd3f70d88b452f5adf78ea0082f78cc485 /railties/lib/rails/commands.rb | |
parent | aafac200be0691aa97daf67b4a12ff8199dd7fe3 (diff) | |
download | rails-7b2f2c8b477adae9bc7243fb9c895f8a823188a3.tar.gz rails-7b2f2c8b477adae9bc7243fb9c895f8a823188a3.tar.bz2 rails-7b2f2c8b477adae9bc7243fb9c895f8a823188a3.zip |
Tidy up generators commits.
Diffstat (limited to 'railties/lib/rails/commands.rb')
-rw-r--r-- | railties/lib/rails/commands.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/railties/lib/rails/commands.rb b/railties/lib/rails/commands.rb index de5d876c18..338565247f 100644 --- a/railties/lib/rails/commands.rb +++ b/railties/lib/rails/commands.rb @@ -12,11 +12,8 @@ command = aliases[command] || command case command when 'generate', 'destroy', 'plugin' - if command == "plugin" && ARGV.first == "new" + if command == 'plugin' && ARGV.first == 'new' require "rails/commands/plugin_new" - elsif command == 'generate' && ARGV.first == "plugin_new" - puts "This generator should not be used directly as a generator. You should use `rails plugin new` command instead" - exit(1) else require APP_PATH Rails.application.require_environment! |