1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Added code to make initialization process call rails/init.rb for unpacked gems

This commit is contained in:
Paul Barry 2008-05-06 00:52:12 -04:00
parent 3cffe92ff0
commit e792d4ab70

View file

@ -78,7 +78,8 @@ module Rails
# 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