Permalink
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 d664eba commit e6f0c24bc3bd03db725e840fa8949f4dbb1e0a72 @joshk joshk committed Jul 17, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 load_paths.rb
View
@@ -1,8 +1,4 @@
# bust gem prelude
-if defined? Gem
- gem 'bundler'
-else
- require 'rubygems'
-end
+require 'rubygems' unless defined? Gem
require 'bundler'
-Bundler.setup
+Bundler.setup

0 comments on commit e6f0c24

Please sign in to comment.