Skip to content

Commit

Permalink
Bust gem prelude to ensure bundler's in the load path. Not sure what'…
Browse files Browse the repository at this point in the history
…s broken here.
  • Loading branch information
jeremy committed Mar 27, 2010
1 parent a98db7c commit 4384a95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion load_paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
begin
require 'rubygems'
# bust gem prelude
if defined? Gem
Gem.cache
gem 'bundler'
else
require 'rubygems'
end
require 'bundler'
Bundler.setup
rescue LoadError
Expand Down

0 comments on commit 4384a95

Please sign in to comment.