diff --git a/lib/bundler/templates/environment.erb b/lib/bundler/templates/environment.erb index 9380ec0d9d8..9a04a711416 100644 --- a/lib/bundler/templates/environment.erb +++ b/lib/bundler/templates/environment.erb @@ -100,6 +100,8 @@ end <% if options[:rubygems] -%> module Gem + @loaded_stacks = Hash.new { |h,k| h[k] = [] } + def source_index.refresh! super Bundler.add_specs_to_index