提交 9c2657aa 编写于 作者: R rick

Merge commit 'e792d4ab'

......@@ -78,7 +78,8 @@ def locate_plugins_under(base_path)
# a <tt>rails/init.rb</tt> file.
class GemLocator < Locator
def plugins
specs = Gem.loaded_specs.values.select do |spec|
specs = initializer.configuration.gems.map(&:specification)
specs + Gem.loaded_specs.values.select do |spec|
spec.loaded_from && # prune stubs
File.exist?(File.join(spec.full_gem_path, "rails", "init.rb"))
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册