|
|
|
@ -70,6 +70,7 @@ module OpenProject::Plugins |
|
|
|
|
# options: An options Hash, at least :requires_openproject is recommended to |
|
|
|
|
# define the minimal version of OpenProject the plugin is compatible with |
|
|
|
|
# Another common option is :author_url. |
|
|
|
|
# block: Pass a block to the plugin (for defining permissions, menu items and the like) |
|
|
|
|
base.send(:define_method, :register) do |gem_name, options, &block| |
|
|
|
|
base.initializer "#{engine_name}.register_plugin" do |
|
|
|
|
spec = Bundler.environment.specs[gem_name][0] |
|
|
|
|