Skip to content
Browse files

Fix rails/generators/base.rb documentation for hook_for

  • Loading branch information...
1 parent afd9512 commit 73f0588fd3d457b2191e9393f87262defb2c0af4 @alovak alovak 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
@@ -91,7 +91,7 @@ def self.namespace(name=nil)
#
# The lookup in this case for test_unit as input is:
#
- # "test_framework:awesome", "test_framework"
+ # "test_unit:awesome", "test_unit"
#
# Which is not the desired the lookup. You can change it by providing the
# :as option:
@@ -102,7 +102,7 @@ def self.namespace(name=nil)
#
# And now it will lookup at:
#
- # "test_framework:controller", "test_framework"
+ # "test_unit:controller", "test_unit"
#
# Similarly, if you want it to also lookup in the rails namespace, you just
# need to provide the :base value:
@@ -113,7 +113,7 @@ def self.namespace(name=nil)
#
# And the lookup is exactly the same as previously:
#
- # "rails:test_framework", "test_framework:controller", "test_framework"
+ # "rails:test_unit", "test_unit:controller", "test_unit"
#
# ==== Switches
#

0 comments on commit 73f0588

Please sign in to comment.
Something went wrong with that request. Please try again.