Permalink
Browse files

Bust gem prelude to ensure bundler's in the load path. Not sure what'…

…s broken here.
  • Loading branch information...
1 parent a98db7c commit 4384a95b517ae98370dcca5f0aba4205b38527e6 @jeremy jeremy committed Mar 27, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 load_paths.rb
View
@@ -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

0 comments on commit 4384a95

Please sign in to comment.