aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-08-22 11:28:26 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-08-22 11:28:26 -0700
commitd7ec3ee9aedd314786a49201bfaf56f919788a51 (patch)
tree64d3f5f6cadb5ea9a8916deedaf0f3832a10022a /railties/lib/rails
parent0942879a5278008cf1ba2c33f084ada1cbf91ff3 (diff)
parent44f0d94469fb6c5d400776c3307b16fb8e4d1eb1 (diff)
downloadrails-d7ec3ee9aedd314786a49201bfaf56f919788a51.tar.gz
rails-d7ec3ee9aedd314786a49201bfaf56f919788a51.tar.bz2
rails-d7ec3ee9aedd314786a49201bfaf56f919788a51.zip
Merge pull request #2611 from ognevsky/add-destroy-alias
Added destroy alias to rails generator
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/commands.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/commands.rb b/railties/lib/rails/commands.rb
index a21484e5cb..ada150ceec 100644
--- a/railties/lib/rails/commands.rb
+++ b/railties/lib/rails/commands.rb
@@ -4,6 +4,7 @@ ARGV << '--help' if ARGV.empty?
aliases = {
"g" => "generate",
+ "d" => "destroy",
"c" => "console",
"s" => "server",
"db" => "dbconsole",
@@ -87,7 +88,7 @@ The most common rails commands are:
In addition to those, there are:
application Generate the Rails application code
- destroy Undo code generated with "generate"
+ destroy Undo code generated with "generate" (short-cut alias: "d")
benchmarker See how fast a piece of code runs
profiler Get profile information from a piece of code
plugin Install a plugin