summaryrefslogtreecommitdiffstats
path: root/Gemfile
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2013-05-11 11:19:21 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2013-05-11 11:19:21 +0000
commitef153a5bca8a3e5fb0231be75feaf14eeb05c507 (patch)
tree146b5bc524bdfe0979a83ea6d30cfd78fe76c018 /Gemfile
parentf9e6414de6bba7a5944f17e1732d80c460855ed6 (diff)
downloadredmine-ef153a5bca8a3e5fb0231be75feaf14eeb05c507.tar.gz
redmine-ef153a5bca8a3e5fb0231be75feaf14eeb05c507.zip
Improve plugins' Gemfile loading (#14028).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11826 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index a94a97b26..5c32962dc 100644
--- a/Gemfile
+++ b/Gemfile
@@ -94,5 +94,6 @@ end
# Load plugins' Gemfiles
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
- instance_eval File.read(file)
+ #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
+ instance_eval File.read(file), file
end