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.
This commit is contained in:
Josh Kalderimis
2011-07-17 15:21:19 +02:00
parent d664eba5b4
commit e6f0c24bc3

View File

@@ -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