]> source.dussan.org Git - redmine.git/commitdiff
Fixed setting value serialization.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 19 Sep 2007 16:29:45 +0000 (16:29 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 19 Sep 2007 16:29:45 +0000 (16:29 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@744 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/setting.rb

index 5341cc9520801da19f8bd5b056f66cf989a23e09..d661eed75a229d469d844e58452571ed189d7206 100644 (file)
@@ -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