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:
parent
3cffe92ff0
commit
e792d4ab70
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue