summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-17 06:48:02 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-17 06:48:02 +0000
commitaa2fd98890ab919ceba5efe1fc74b7735f0a6645 (patch)
treef687bcf75fe68f8b552a2e3e7bd1dc4a116ea10a
parent37dc9aeac2f8d9f3a0b35d6a08145c452f175c4b (diff)
downloadredmine-aa2fd98890ab919ceba5efe1fc74b7735f0a6645.tar.gz
redmine-aa2fd98890ab919ceba5efe1fc74b7735f0a6645.zip
replace RAILS_ROOT to Rails.root at lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6093 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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