Skip to content

Commit

Permalink
This fixes an issue when bundling to a local path (eg. /vendor/bundle).
Browse files Browse the repository at this point in the history
If you bundle to a local path bundler is not included in it, so
calling "gem 'bundler'" will fail.

Conflicts:

	load_paths.rb
  • Loading branch information
joshk authored and fxn committed Jul 18, 2011
1 parent a6139b9 commit 9ade587
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions load_paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
begin
# bust gem prelude
if defined? Gem
Gem.source_index
gem 'bundler'
else
require 'rubygems'
end
require 'rubygems' unless defined? Gem
require 'bundler'
Bundler.setup
rescue LoadError
Expand Down

0 comments on commit 9ade587

Please sign in to comment.