Content
Plugins with nested namespaces
Added by Ole Trenner over 10 years ago
Hi,
we are currently using the openproject-plugins plugin to develop several plugins. As far as we understand plugins follow the naming scheme ‘openproject-plugin_name’ and reside in a module ‘OpenProject::PluginName’. We would like to introduce an intermediary namespace, like so: ‘openproject-ourname-plugin_name’, resulting in a module structure like OpenProject::Ourname::PluginName.
So far we haven’t been able to achieve this. Whenever we put the plugin engine in another namespace we get all sorts of errors.
Is this possible at all? The code of acts_as_op_engine (e.g. https://github.com/opf/openproject-plugins/blob/dev/lib/open_project/plugins/acts_as_op_engine.rb#L52) seems to indicate that the nesting and naming is hardcoded.
Thanks for any suggestions!
Cheers,
Ole.