aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/base.rb
diff options
context:
space:
mode:
authorHendy Tanata <htanata@gmail.com>2011-12-21 00:56:49 -0800
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-21 22:28:34 +0530
commitefb75f774a5d7383d876e1f377a9cf5396e6ffdb (patch)
tree597ff71aa32d42a4663ce6be61e1fd6ea26154a6 /railties/lib/rails/generators/base.rb
parenta2f5df526c74a4c89e5226f5c5bd23f149b36b5d (diff)
downloadrails-efb75f774a5d7383d876e1f377a9cf5396e6ffdb.tar.gz
rails-efb75f774a5d7383d876e1f377a9cf5396e6ffdb.tar.bz2
rails-efb75f774a5d7383d876e1f377a9cf5396e6ffdb.zip
Doc fixes on Rails::Generators::Base.hook_for.
Diffstat (limited to 'railties/lib/rails/generators/base.rb')
-rw-r--r--railties/lib/rails/generators/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/base.rb b/railties/lib/rails/generators/base.rb
index f38a487a4e..af743a9c51 100644
--- a/railties/lib/rails/generators/base.rb
+++ b/railties/lib/rails/generators/base.rb
@@ -128,13 +128,13 @@ module Rails
#
# ==== Boolean hooks
#
- # In some cases, you want to provide a boolean hook. For example, webrat
+ # In some cases, you may want to provide a boolean hook. For example, webrat
# developers might want to have webrat available on controller generator.
# This can be achieved as:
#
# Rails::Generators::ControllerGenerator.hook_for :webrat, :type => :boolean
#
- # Then, if you want, webrat to be invoked, just supply:
+ # Then, if you want webrat to be invoked, just supply:
#
# rails generate controller Account --webrat
#
@@ -146,7 +146,7 @@ module Rails
#
# You can also supply a block to hook_for to customize how the hook is
# going to be invoked. The block receives two arguments, an instance
- # of the current class and the klass to be invoked.
+ # of the current class and the class to be invoked.
#
# For example, in the resource generator, the controller should be invoked
# with a pluralized class name. But by default it is invoked with the same