From 31eda0fcb2d8122f4443557904253da290815d59 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 19 Sep 2007 16:29:45 +0000 Subject: [PATCH] Fixed setting value serialization. git-svn-id: http://redmine.rubyforge.org/svn/trunk@744 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 5341cc952..d661eed75 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -36,7 +36,7 @@ class Setting < ActiveRecord::Base end def value=(v) - v = v.to_yaml if @@available_settings[name]['serialized'] && v.is_a?(String) + v = v.to_yaml if v && @@available_settings[name]['serialized'] write_attribute(:value, v) end