Mercurial > hg > soundsoftware-site
comparison app/models/user_preference.rb @ 929:5f33065ddc4b redmine-1.3
Update to Redmine SVN rev 9414 on 1.3-stable branch
author | Chris Cannam |
---|---|
date | Wed, 27 Jun 2012 14:54:18 +0100 |
parents | cbb26bc654de |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
909:cbb26bc654de | 929:5f33065ddc4b |
---|---|
17 | 17 |
18 class UserPreference < ActiveRecord::Base | 18 class UserPreference < ActiveRecord::Base |
19 belongs_to :user | 19 belongs_to :user |
20 serialize :others | 20 serialize :others |
21 | 21 |
22 attr_protected :others | 22 attr_protected :others, :user_id |
23 | 23 |
24 def initialize(attributes = nil) | 24 def initialize(attributes = nil) |
25 super | 25 super |
26 self.others ||= {} | 26 self.others ||= {} |
27 end | 27 end |