aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorBrian Browning <bwbrowning@gmail.com>2011-12-23 21:17:15 +0100
committerBrian Browning <bwbrowning@gmail.com>2011-12-23 21:17:15 +0100
commitf8e89b5c4c287595eec16210bc37789074d1c924 (patch)
treebc81e5c57973c7b06cff9db2cb12da22d3c63f93 /railties/guides/source
parenta51c4a314f1721a92864b0484f974bddef894eaa (diff)
downloadrails-f8e89b5c4c287595eec16210bc37789074d1c924.tar.gz
rails-f8e89b5c4c287595eec16210bc37789074d1c924.tar.bz2
rails-f8e89b5c4c287595eec16210bc37789074d1c924.zip
[docs] make it clear that the methods in a generator are executed sequentially
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/generators.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/generators.textile b/railties/guides/source/generators.textile
index 7a863ccbc7..d93dcf40bf 100644
--- a/railties/guides/source/generators.textile
+++ b/railties/guides/source/generators.textile
@@ -48,7 +48,7 @@ end
NOTE: +create_file+ is a method provided by +Thor::Actions+. Documentation for +create_file+ and other Thor methods can be found in "Thor's documentation":http://rdoc.info/github/wycats/thor/master/Thor/Actions.html
-Our new generator is quite simple: it inherits from +Rails::Generators::Base+ and has one method definition. Each public method in the generator is executed when a generator is invoked. Finally, we invoke the +create_file+ method that will create a file at the given destination with the given content. If you are familiar with the Rails Application Templates API, you'll feel right at home with the new generators API.
+Our new generator is quite simple: it inherits from +Rails::Generators::Base+ and has one method definition. When a generator is invoked, each public method in the generator is executed sequentially in the order that it is defined. Finally, we invoke the +create_file+ method that will create a file at the given destination with the given content. If you are familiar with the Rails Application Templates API, you'll feel right at home with the new generators API.
To invoke our new generator, we just need to do: