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 7f3f3f68e..24d3af8e4 100644 --- a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb +++ b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb @@ -14,7 +14,7 @@ class RedminePluginControllerGenerator < ControllerGenerator end def destination_root - File.join(RAILS_ROOT, plugin_path) + File.join(Rails.root, plugin_path) end def manifest