From 30c2cc833aef37ee0836c51c4b7681aef7e91ca6 Mon Sep 17 00:00:00 2001 From: Michael Frister Date: Fri, 28 Mar 2014 09:54:39 +0100 Subject: [PATCH] Fix plugin loading when occurring after openproject-plugins in Gemfile --- lib/open_project/costs/engine.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/open_project/costs/engine.rb b/lib/open_project/costs/engine.rb index 4329c6436c..a650979b2d 100644 --- a/lib/open_project/costs/engine.rb +++ b/lib/open_project/costs/engine.rb @@ -17,6 +17,10 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #++ +# Prevent load-order problems in case openproject-plugins is listed after a plugin in the Gemfile +# or not at all +require 'open_project/plugins' + module OpenProject::Costs class Engine < ::Rails::Engine engine_name :openproject_costs