aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/rails_generator/lookup.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/lookup.rb b/railties/lib/rails_generator/lookup.rb
index 5e110e80bd..6ec6886485 100644
--- a/railties/lib/rails_generator/lookup.rb
+++ b/railties/lib/rails_generator/lookup.rb
@@ -99,8 +99,8 @@ module Rails
def use_component_sources!
reset_sources
if defined? ::RAILS_ROOT
- sources << PathSource.new(:app, "#{::RAILS_ROOT}/lib/generators")
- sources << PathSource.new(:app, "#{::RAILS_ROOT}/vendor/generators")
+ sources << PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators")
+ sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators")
sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/**/generators")
end
sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators")