diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-02-12 22:08:02 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-02-12 22:08:02 +0000 |
commit | 4a67c211ca7b3817125a599a1659acc93060c29c (patch) | |
tree | 30645a84977ede11760eaa35818056bcbdbba9df /app/models/setting.rb | |
parent | 8d086cb7d446d4d4c1b1140f387c1c8ebeb7ca06 (diff) | |
download | redmine-4a67c211ca7b3817125a599a1659acc93060c29c.tar.gz redmine-4a67c211ca7b3817125a599a1659acc93060c29c.zip |
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
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 16f59be72..70d8f2be1 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -97,7 +97,7 @@ class Setting < ActiveRecord::Base end 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) end |