diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-16 01:52:45 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-16 01:52:45 +0000 |
commit | c3b4722c2ac871153a69b6e325fd059ead6a694a (patch) | |
tree | 62181487d61636e6c748f0c177374c8e39b06923 /app/models/setting.rb | |
parent | dd176828bfcfd5fa958acd024da6f323da5b1991 (diff) | |
download | redmine-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.rb | 2 |
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} |