Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Doc fixes on Rails::Generators::Base.hook_for.

  • Loading branch information...
commit efb75f774a5d7383d876e1f377a9cf5396e6ffdb 1 parent a2f5df5
@htanata htanata authored vijaydev committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/lib/rails/generators/base.rb
View
6 railties/lib/rails/generators/base.rb
@@ -128,13 +128,13 @@ def self.namespace(name=nil)
#
# ==== 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 @@ def self.namespace(name=nil)
#
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.