diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-19 16:29:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-19 16:29:45 +0000 |
commit | 31eda0fcb2d8122f4443557904253da290815d59 (patch) | |
tree | 8ad156b4a84eefc29989ea154c6877f711a50d15 /app/models/setting.rb | |
parent | 83eed09109ba6b2a4b85837a071a32b731eee7b7 (diff) | |
download | redmine-31eda0fcb2d8122f4443557904253da290815d59.tar.gz redmine-31eda0fcb2d8122f4443557904253da290815d59.zip |
Fixed setting value serialization.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@744 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/setting.rb')
-rw-r--r-- | app/models/setting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |