Skip to content
Browse files

This fixes an issue when bundling to a local path (eg. /vendor/bundle).

If you bundle to a local path bundler is not included in it, so
calling "gem 'bundler'" will fail.


  • Loading branch information...
1 parent a6139b9 commit 9ade5870023a427433737325005d47f600105a3a @joshk joshk committed with fxn Jul 17, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 load_paths.rb
8 load_paths.rb
@@ -2,13 +2,7 @@
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
- # bust gem prelude
- if defined? Gem
- Gem.source_index
- gem 'bundler'
- else
- require 'rubygems'
- end
+ require 'rubygems' unless defined? Gem
require 'bundler'
rescue LoadError

0 comments on commit 9ade587

Please sign in to comment.
Something went wrong with that request. Please try again.