From 1273bed45a7a04fda0b38ff553e52218b6d2a76f Mon Sep 17 00:00:00 2001 From: Michael Frister Date: Fri, 28 Mar 2014 09:47:55 +0100 Subject: [PATCH] Fix plugin loading when occurring after openproject-plugins in Gemfile --- lib/open_project/my_project_page/engine.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/open_project/my_project_page/engine.rb b/lib/open_project/my_project_page/engine.rb index f18d05bb6c..266b39cb0e 100644 --- a/lib/open_project/my_project_page/engine.rb +++ b/lib/open_project/my_project_page/engine.rb @@ -18,6 +18,10 @@ # See doc/COPYRIGHT.md for more details. #++ +# Prevent load-order problems in case openproject-plugins is listed after a plugin in the Gemfile +# or not at all +require 'open_project/plugins' + require 'rails/engine' require 'open_project/my_project_page/plugin_blocks'