diff options
author | Carl Lerche <carllerche@mac.com> | 2009-10-17 14:38:21 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-10-17 14:38:40 -0700 |
commit | d0f4d93df823d5124d8f2cc740471d458633c338 (patch) | |
tree | 3a4b0af10e769fa998131cb9a5a9b97dba03f933 /railties/lib/rails/plugin | |
parent | f936a1f100e75082081e782e5cceb272885c2df7 (diff) | |
download | rails-d0f4d93df823d5124d8f2cc740471d458633c338.tar.gz rails-d0f4d93df823d5124d8f2cc740471d458633c338.tar.bz2 rails-d0f4d93df823d5124d8f2cc740471d458633c338.zip |
Remove some remnants of config.gem
Diffstat (limited to 'railties/lib/rails/plugin')
-rw-r--r-- | railties/lib/rails/plugin/locator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/plugin/locator.rb b/railties/lib/rails/plugin/locator.rb index 1057c004e0..56cbaf37c6 100644 --- a/railties/lib/rails/plugin/locator.rb +++ b/railties/lib/rails/plugin/locator.rb @@ -78,7 +78,7 @@ module Rails # a <tt>rails/init.rb</tt> file. class GemLocator < Locator def plugins - gem_index = initializer.configuration.gems.inject({}) { |memo, gem| memo.update gem.specification => gem } + gem_index = {} specs = gem_index.keys specs += Gem.loaded_specs.values.select do |spec| spec.loaded_from && # prune stubs |