aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-09-22 17:43:31 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-09-22 17:43:31 +0000
commitc361caf8b41f51e83ec4bd857df1cf58e7f31915 (patch)
tree63852f3fb13983751303dad33b1258e0b88f5d79 /railties/lib/rails_generator
parentac4f37ecbbf2d9e19118ff7948df90e3b21a1c22 (diff)
downloadrails-c361caf8b41f51e83ec4bd857df1cf58e7f31915.tar.gz
rails-c361caf8b41f51e83ec4bd857df1cf58e7f31915.tar.bz2
rails-c361caf8b41f51e83ec4bd857df1cf58e7f31915.zip
Doc fix (closes #9203) [lazyatom]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r--railties/lib/rails_generator/lookup.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/railties/lib/rails_generator/lookup.rb b/railties/lib/rails_generator/lookup.rb
index ca46afa418..598cb79e73 100644
--- a/railties/lib/rails_generator/lookup.rb
+++ b/railties/lib/rails_generator/lookup.rb
@@ -92,9 +92,13 @@ module Rails
# 1. Rails application. If RAILS_ROOT is defined we know we're
# generating in the context of a Rails application, so search
# RAILS_ROOT/generators.
- # 2. User home directory. Search ~/.rails/generators.
- # 3. RubyGems. Search for gems named *_generator.
- # 4. Builtins. Model, controller, mailer, scaffold.
+ # 2. Look in plugins, either for generators/ or rails_generators/
+ # directories within each plugin
+ # 3. User home directory. Search ~/.rails/generators.
+ # 4. RubyGems. Search for gems named *_generator, and look for
+ # generators within any RubyGem's
+ # /rails_generators/<generator_name>_generator.rb file.
+ # 5. Builtins. Model, controller, mailer, scaffold, and so on.
def use_component_sources!
reset_sources
if defined? ::RAILS_ROOT