Commit 31eda0fc authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed setting value serialization.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@744 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 83eed091
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment