public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Added code to make initialization process call rails/init.rb for unpacked gems
pjb3 (author)
Mon May 05 21:52:12 -0700 2008
commit  e792d4ab70448f79142fdf492390682ff5ea6398
tree    eb730e9ec058a4d0dd2e73d919156bc919567cae
parent  3cffe92ff066c2b35eef409547db93652c5cccfc
...
78
79
80
81
 
 
82
83
84
...
78
79
80
 
81
82
83
84
85
0
@@ -78,7 +78,8 @@ module Rails
0
     # a <tt>rails/init.rb</tt> file.
0
     class GemLocator < Locator
0
       def plugins
0
-        specs = Gem.loaded_specs.values.select do |spec|
0
+        specs = initializer.configuration.gems.map(&:specification)
0
+        specs + Gem.loaded_specs.values.select do |spec|
0
           spec.loaded_from && # prune stubs
0
             File.exist?(File.join(spec.full_gem_path, "rails", "init.rb"))
0
         end

Comments