diff --git a/Gemfile b/Gemfile index d2117fc4b..637c47bee 100644 --- a/Gemfile +++ b/Gemfile @@ -105,6 +105,6 @@ if File.exists?(local_gemfile) end # Load plugins' Gemfiles -Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file| +Dir.glob File.join(Redmine::Plugin.directory, "*/{Gemfile,PluginGemfile}") do |file| eval_gemfile file end