Fixed a nil method error in Setting#value=
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3417 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8d086cb7d4
commit
4a67c211ca
|
@ -97,7 +97,7 @@ class Setting < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def value=(v)
|
def value=(v)
|
||||||
v = v.to_yaml if v && @@available_settings[name]['serialized']
|
v = v.to_yaml if v && @@available_settings[name] && @@available_settings[name]['serialized']
|
||||||
write_attribute(:value, v.to_s)
|
write_attribute(:value, v.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue