]> source.dussan.org Git - redmine.git/commitdiff
replace RAILS_ROOT to Rails.root in setting model.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 16 Jun 2011 01:52:45 +0000 (01:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 16 Jun 2011 01:52:45 +0000 (01:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6076 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/setting.rb

index 80e084e9c6b3a6be990e1b8045c500f95103a399..12b186fe84be17a63c10653cbd637157b1a07adf 100644 (file)
@@ -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}