Override Rails' default gem handling and replace it with Bundler

Bundler does a better job of manage dependencies and is used by default
in Rails 3 so this will move Tracks a bit closer towards a Rails 3
conversion.
This commit is contained in:
Matt Rogers 2011-08-18 10:12:29 -05:00
parent e93a6970bd
commit 69cb08378d
2 changed files with 35 additions and 0 deletions

View file

@ -110,5 +110,19 @@ module Rails
end
end
class Rails::Boot
def run
load_initializer
Rails::Initializer.class_eval do
def load_gems
@bundler_loaded ||= Bundler.require :default, Rails.env
end
end
Rails::Initializer.run(:set_load_path)
end
end
# All that for this:
Rails.boot!