Fixed setting value serialization.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@744 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
83eed09109
commit
31eda0fcb2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue