OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83eed09
)
Fixed setting value serialization.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Wed, 19 Sep 2007 16:29:45 +0000
(16:29 +0000)
committer
Jean-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
patch
|
blob
|
history
diff --git
a/app/models/setting.rb
b/app/models/setting.rb
index
5341cc9
..
d661eed
100644
(file)
--- 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