Permalink
Browse files

Merge pull request #2646 from guilleiguaran/add-destroy-alias-to-engine

Add destroy alias to engines
  • Loading branch information...
2 parents 0b6da0c + d17954c commit 7079701e5bfe3b8d6e8339f2cc4964e3608f1ffe @tenderlove tenderlove committed Aug 23, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 railties/lib/rails/engine/commands.rb
@@ -3,7 +3,8 @@
ARGV << '--help' if ARGV.empty?
aliases = {
- "g" => "generate"
+ "g" => "generate",
+ "d" => "destroy"
}
command = ARGV.shift
@@ -30,7 +31,7 @@
The common rails commands available for engines are:
generate Generate new code (short-cut alias: "g")
- destroy Undo code generated with "generate"
+ destroy Undo code generated with "generate" (short-cut alias: "d")
All commands can be run with -h for more information.
EOT

0 comments on commit 7079701

Please sign in to comment.