summaryrefslogtreecommitdiffstats
path: root/lib/generators
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generators')
-rw-r--r--lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
index 1c34439aa..be231a91c 100644
--- a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
+++ b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
@@ -14,7 +14,7 @@ class RedminePluginModelGenerator < ModelGenerator
end
def destination_root
- File.join(RAILS_ROOT, plugin_path)
+ File.join(Rails.root, plugin_path)
end
def manifest