aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorAndrey Ognevsky <a.ognevsky@gmail.com>2011-08-21 01:25:11 +0300
committerAndrey Ognevsky <a.ognevsky@gmail.com>2011-08-22 17:46:10 +0300
commit44f0d94469fb6c5d400776c3307b16fb8e4d1eb1 (patch)
treef48ed84605b666bf6b6f863a36c0d6cfafe2d62c /railties/lib
parentaae5ebf3eb7d17e668bb05f9c859e239f31b9f50 (diff)
downloadrails-44f0d94469fb6c5d400776c3307b16fb8e4d1eb1.tar.gz
rails-44f0d94469fb6c5d400776c3307b16fb8e4d1eb1.tar.bz2
rails-44f0d94469fb6c5d400776c3307b16fb8e4d1eb1.zip
Add Destroy Alias
* Added destroy alias to rails generator * add alias info for destroy command * Updated command line guides
Diffstat (limited to 'railties/lib')
-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