Skip to content

Commit

Permalink
Doc fixes on Rails::Generators::Base.hook_for.
Browse files Browse the repository at this point in the history
  • Loading branch information
htanata authored and vijaydev committed Dec 21, 2011
1 parent a2f5df5 commit efb75f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/lib/rails/generators/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand All @@ -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
Expand Down

0 comments on commit efb75f7

Please sign in to comment.