Actions
Patch #24939
openChanging plugin loading order
Patch #24939:
Changing plugin loading order
Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Description
Hi,
I have one plugin that depends on another, and I needed to specify the order plugins are loaded so the classes and migrations are loaded in the proper order, but the dependent plugin is loaded first because of alphabetical order of their names.
I made this patch on lib/redmine/plugin.rb so I can determine plugins loading order by setting its priorities on a Hash in the file config/additional_environment.rb.
This sorting relies that plugin directory name is equals to its id.
Regards,
Files
Actions