Skip to content

Commit

Permalink
Added code to make initialization process call rails/init.rb for unpa…
Browse files Browse the repository at this point in the history
…cked gems
  • Loading branch information
pjb3 committed May 6, 2008
1 parent 3cffe92 commit e792d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion railties/lib/rails/plugin/locator.rb
Expand Up @@ -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
Expand Down

0 comments on commit e792d4a

Please sign in to comment.