aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--load_paths.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/load_paths.rb b/load_paths.rb
index b87e0d7235..873315f978 100644
--- a/load_paths.rb
+++ b/load_paths.rb
@@ -2,7 +2,13 @@ begin
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