Generator: Add explicit require to fix load-order problems

pull/1649/head
Michael Frister 11 years ago
parent 61c7dab594
commit 737b5993ad
  1. 4
      lib/generators/open_project/plugin/templates/lib/open_project/%plugin_name%/engine.rb.tt

@ -1,3 +1,7 @@
# 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::<%= plugin_name.camelcase %>
class Engine < ::Rails::Engine
engine_name :openproject_<%= plugin_name %>

Loading…
Cancel
Save