Skip to content
This repository
Browse code

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...
commit e6f0c24bc3bd03db725e840fa8949f4dbb1e0a72 1 parent d664eba
Josh Kalderimis authored July 17, 2011

Showing 1 changed file with 2 additions and 6 deletions. Show diff stats Hide diff stats

  1. 8  load_paths.rb
8  load_paths.rb
... ...
@@ -1,8 +1,4 @@
1 1
 # bust gem prelude
2  
-if defined? Gem
3  
-  gem 'bundler'
4  
-else
5  
-  require 'rubygems'
6  
-end
  2
+require 'rubygems' unless defined? Gem
7 3
 require 'bundler'
8  
-Bundler.setup
  4
+Bundler.setup

0 notes on commit e6f0c24

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