Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…s broken here.
  • Loading branch information...
commit 4384a95b517ae98370dcca5f0aba4205b38527e6 1 parent a98db7c
@jeremy jeremy authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 load_paths.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.