From 49d4b778276b7f79d14a47cee7e06add75a14cfd Mon Sep 17 00:00:00 2001 From: Akira Saito Date: Thu, 13 Nov 2014 02:36:37 +0900 Subject: [PATCH] to solve the dependency on the directory name --- init.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 9ad43b6..c41ccc9 100644 --- a/init.rb +++ b/init.rb @@ -3,7 +3,12 @@ require_dependency File.expand_path('../app/helpers/application_helper.rb', __FILE__) require_dependency File.expand_path('../hooks', __FILE__) -Redmine::Plugin.register :quick_edit do + +# plugin name depends to plugin directory +plugin_name = File.dirname(File.expand_path(__FILE__)) +plugin_name = File.basename(plugin_name) + +Redmine::Plugin.register plugin_name do name 'Quick Edit plugin' author 'Akira Saito' description 'This plugin provides ability to edit a fields of the issue at the issues page.' -- 2.11.0