summaryrefslogtreecommitdiffstats
path: root/lib/generators/redmine_plugin_controller
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-18 12:20:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-18 12:20:10 +0000
commit9c3e3a4276612f60552379518ab8c9a11319e73b (patch)
treeabfac3dc3114e32fb583c5c3fae3661ce2431ec4 /lib/generators/redmine_plugin_controller
parent7a9a22f3dd62ab4c1257db38f9b8c923bdcc4c8c (diff)
downloadredmine-9c3e3a4276612f60552379518ab8c9a11319e73b.tar.gz
redmine-9c3e3a4276612f60552379518ab8c9a11319e73b.zip
Code cleanup (#24007).
git-svn-id: http://svn.redmine.org/redmine/trunk@15964 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/generators/redmine_plugin_controller')
-rw-r--r--lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb6
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