From: Jean-Philippe Lang Date: Wed, 19 Sep 2007 16:29:45 +0000 (+0000) Subject: Fixed setting value serialization. X-Git-Tag: 0.6.0~138 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31eda0fcb2d8122f4443557904253da290815d59;p=redmine.git Fixed setting value serialization. git-svn-id: http://redmine.rubyforge.org/svn/trunk@744 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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