aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-08-22 23:39:17 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-08-22 23:39:17 -0500
commitd17954c7d826b64ae7d04aac4db6f919d5e22589 (patch)
tree3d923579deae284c493f91a7a54eab3aa573ee3e /railties/lib
parent0b6da0c65497df4ee9d2f9313ccb9909bdc842e9 (diff)
downloadrails-d17954c7d826b64ae7d04aac4db6f919d5e22589.tar.gz
rails-d17954c7d826b64ae7d04aac4db6f919d5e22589.tar.bz2
rails-d17954c7d826b64ae7d04aac4db6f919d5e22589.zip
Add destroy alias to engines
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/engine/commands.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/rails/engine/commands.rb b/railties/lib/rails/engine/commands.rb
index 3b0920e213..b71119af77 100644
--- a/railties/lib/rails/engine/commands.rb
+++ b/railties/lib/rails/engine/commands.rb
@@ -3,7 +3,8 @@ require 'active_support/core_ext/object/inclusion'
ARGV << '--help' if ARGV.empty?
aliases = {
- "g" => "generate"
+ "g" => "generate",
+ "d" => "destroy"
}
command = ARGV.shift
@@ -30,7 +31,7 @@ Usage: rails COMMAND [ARGS]
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