diff options
Diffstat (limited to 'lib/generators/redmine_plugin_controller')
-rw-r--r-- | lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb index 231b68810..9c42d938b 100644 --- a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb +++ b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb @@ -9,11 +9,7 @@ class RedminePluginControllerGenerator < Rails::Generators::NamedBase super @plugin_name = file_name.underscore @plugin_pretty_name = plugin_name.titleize - if Redmine::Configuration['plugins_path'].nil? - @plugin_path = File.join(Rails.root, 'plugins', plugin_name) - else - @plugin_path = File.join(Redmine::Configuration['plugins_path'], plugin_name) - end + @plugin_path = File.join(Redmine::Plugin.directory, plugin_name) @controller_class = controller.camelize end |