Fix rails/generators/base.rb documentation for generator lookup

This commit is contained in:
Ryan Bigg 2011-10-10 20:10:35 +11:00
parent be01aa6c9b
commit 44fc397c80

@ -91,7 +91,7 @@ def self.namespace(name=nil)
#
# The lookup in this case for test_unit as input is:
#
# "test_unit:awesome", "test_unit"
# "test_framework:awesome", "test_framework"
#
# 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_unit:controller", "test_unit"
# "test_framework:controller", "test_framework"
#
# 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_unit", "test_unit:controller", "test_unit"
# "rails:test_framework", "test_framework:controller", "test_framework"
#
# ==== Switches
#