Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added code to make initialization process call rails/init.rb for unpa…

…cked gems
  • Loading branch information...
commit e792d4ab70448f79142fdf492390682ff5ea6398 1 parent 3cffe92
@pjb3 pjb3 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  railties/lib/rails/plugin/locator.rb
View
3  railties/lib/rails/plugin/locator.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.