Fixed setting value serialization.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@744 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-09-19 16:29:45 +00:00
parent 83eed09109
commit 31eda0fcb2
1 changed files with 1 additions and 1 deletions

View 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