mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-16 05:58:12 +00:00
Rails 2.1 compatibility fix in UserPreference.
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1621 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
11a6b24af3
commit
425153b103
@ -42,8 +42,10 @@ class UserPreference < ActiveRecord::Base
|
|||||||
if attribute_present? attr_name
|
if attribute_present? attr_name
|
||||||
super
|
super
|
||||||
else
|
else
|
||||||
self.others ||= {}
|
h = read_attribute(:others).dup || {}
|
||||||
self.others.store attr_name, value
|
h.update(attr_name => value)
|
||||||
|
write_attribute(:others, h)
|
||||||
|
value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user