summaryrefslogtreecommitdiffstats
path: root/app/models/setting.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-16 01:52:45 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-16 01:52:45 +0000
commitc3b4722c2ac871153a69b6e325fd059ead6a694a (patch)
tree62181487d61636e6c748f0c177374c8e39b06923 /app/models/setting.rb
parentdd176828bfcfd5fa958acd024da6f323da5b1991 (diff)
downloadredmine-c3b4722c2ac871153a69b6e325fd059ead6a694a.tar.gz
redmine-c3b4722c2ac871153a69b6e325fd059ead6a694a.zip
replace RAILS_ROOT to Rails.root in setting model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6076 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/setting.rb')
-rw-r--r--app/models/setting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/setting.rb b/app/models/setting.rb
index 80e084e9c..12b186fe8 100644
--- a/app/models/setting.rb
+++ b/app/models/setting.rb
@@ -75,7 +75,7 @@ class Setting < ActiveRecord::Base
TIS-620)
cattr_accessor :available_settings
- @@available_settings = YAML::load(File.open("#{RAILS_ROOT}/config/settings.yml"))
+ @@available_settings = YAML::load(File.open("#{Rails.root}/config/settings.yml"))
Redmine::Plugin.all.each do |plugin|
next unless plugin.settings
@@available_settings["plugin_#{plugin.id}"] = {'default' => plugin.settings[:default], 'serialized' => true}