aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorPaul Barry <mail@paulbarry.com>2008-05-06 00:52:12 -0400
committerPaul Barry <mail@paulbarry.com>2008-05-06 00:52:12 -0400
commite792d4ab70448f79142fdf492390682ff5ea6398 (patch)
treeeb730e9ec058a4d0dd2e73d919156bc919567cae /railties
parent3cffe92ff066c2b35eef409547db93652c5cccfc (diff)
downloadrails-e792d4ab70448f79142fdf492390682ff5ea6398.tar.gz
rails-e792d4ab70448f79142fdf492390682ff5ea6398.tar.bz2
rails-e792d4ab70448f79142fdf492390682ff5ea6398.zip
Added code to make initialization process call rails/init.rb for unpacked gems
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/plugin/locator.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/plugin/locator.rb b/railties/lib/rails/plugin/locator.rb
index 6e6d2201a1..fd7de4ee28 100644
--- a/railties/lib/rails/plugin/locator.rb
+++ b/railties/lib/rails/plugin/locator.rb
@@ -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