Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Fix @loaded_stacks so that rubygems doesn't raise a NoMethodError #ma…
Browse files Browse the repository at this point in the history
…p on nil object.
  • Loading branch information
Carl Lerche committed Oct 28, 2009
1 parent 68d4ebe commit 5a175a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bundler/templates/environment.erb
Expand Up @@ -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
Expand Down

0 comments on commit 5a175a3

Please sign in to comment.