summaryrefslogtreecommitdiffstats
path: root/config/boot.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-19 14:30:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-19 14:30:46 +0000
commit9315039e0a95b0234b7736f359fc039550f45e08 (patch)
treea96bd2888004e027b5e460066c3e8e42d8e6e559 /config/boot.rb
parent37575f27feb19396671e6760b578265f841de733 (diff)
downloadredmine-9315039e0a95b0234b7736f359fc039550f45e08.tar.gz
redmine-9315039e0a95b0234b7736f359fc039550f45e08.zip
Use Bundler for gem management (#5638).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8904 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/boot.rb')
-rw-r--r--config/boot.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
index 6ca837c82..cfc60f758 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -41,6 +41,11 @@ module Rails
class 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