提交 73f0588f 编写于 作者: P Pavel Gabriel

Fix rails/generators/base.rb documentation for hook_for

上级 afd9512c
......@@ -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
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册