diff options
author | Akira Matsuda & Yukiko Kawamoto <ronnie@dio.jp> | 2013-09-13 18:16:02 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-09-13 18:19:35 +0900 |
commit | 1eebfc9f66149020efe23a620da110424e5a5c33 (patch) | |
tree | 0580628600d69781ad8e963634ba708e7b36f076 | |
parent | defdeed2fc1f6f30c8eeebc7e2695d82624942e2 (diff) | |
download | rails-1eebfc9f66149020efe23a620da110424e5a5c33.tar.gz rails-1eebfc9f66149020efe23a620da110424e5a5c33.tar.bz2 rails-1eebfc9f66149020efe23a620da110424e5a5c33.zip |
Missing destroy command
-rw-r--r-- | railties/lib/rails/commands/commands_tasks.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/commands_tasks.rb b/railties/lib/rails/commands/commands_tasks.rb index 11524c4ef5..59d2a0793e 100644 --- a/railties/lib/rails/commands/commands_tasks.rb +++ b/railties/lib/rails/commands/commands_tasks.rb @@ -51,6 +51,10 @@ EOT generate_or_destroy(:generate) end + def destroy + generate_or_destroy(:destroy) + end + def console require_command!("console") options = Rails::Console.parse_arguments(argv) |