mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
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:
parent
e93a6970bd
commit
69cb08378d
2 changed files with 35 additions and 0 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue