From 4a67c211ca7b3817125a599a1659acc93060c29c Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Fri, 12 Feb 2010 22:08:02 +0000 Subject: [PATCH] Fixed a nil method error in Setting#value= git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3417 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/setting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/setting.rb b/app/models/setting.rb index 16f59be72..70d8f2be1 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -97,7 +97,7 @@ class Setting < ActiveRecord::Base end def value=(v) - v = v.to_yaml if v && @@available_settings[name]['serialized'] + v = v.to_yaml if v && @@available_settings[name] && @@available_settings[name]['serialized'] write_attribute(:value, v.to_s) end -- 2.39.5