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
This commit is contained in:
Toshi MARUYAMA 2011-06-16 01:52:45 +00:00
parent dd176828bf
commit c3b4722c2a
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class Setting < ActiveRecord::Base
TIS-620) TIS-620)
cattr_accessor :available_settings 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| Redmine::Plugin.all.each do |plugin|
next unless plugin.settings next unless plugin.settings
@@available_settings["plugin_#{plugin.id}"] = {'default' => plugin.settings[:default], 'serialized' => true} @@available_settings["plugin_#{plugin.id}"] = {'default' => plugin.settings[:default], 'serialized' => true}