From 4384a95b517ae98370dcca5f0aba4205b38527e6 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 27 Mar 2010 12:06:27 -0700 Subject: [PATCH] Bust gem prelude to ensure bundler's in the load path. Not sure what's broken here. --- load_paths.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/load_paths.rb b/load_paths.rb index b87e0d723539b..873315f978b01 100644 --- a/load_paths.rb +++ b/load_paths.rb @@ -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