Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix rails/generators/base.rb documentation for hook_for #4230

Merged
merged 1 commit into from

2 participants

@alovak

make a namespace example more consistent:

"test_unit:awesome", "test_unit"
instead
"test_framework:awesome", "test_framework"
@josevalim josevalim merged commit 65ff9a1 into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 29, 2011
  1. @alovak
This page is out of date. Refresh to see the latest.
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
#
Something went wrong with that request. Please try again.