mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Name vendor/generators source differently from lib/generators source.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
39b71bb8a1
commit
cebb8ff04b
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ module Rails
|
||||||
def use_component_sources!
|
def use_component_sources!
|
||||||
reset_sources
|
reset_sources
|
||||||
if defined? ::RAILS_ROOT
|
if defined? ::RAILS_ROOT
|
||||||
sources << PathSource.new(:app, "#{::RAILS_ROOT}/lib/generators")
|
sources << PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators")
|
||||||
sources << PathSource.new(:app, "#{::RAILS_ROOT}/vendor/generators")
|
sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators")
|
||||||
sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/**/generators")
|
sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/**/generators")
|
||||||
end
|
end
|
||||||
sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators")
|
sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators")
|
||||||
|
|
Loading…
Reference in a new issue