@@ -22,7 +22,7 class UserPreference < ActiveRecord::Base | |||||
22 | attr_protected :others, :user_id |
|
22 | attr_protected :others, :user_id | |
23 |
|
23 | |||
24 | before_save :set_others_hash |
|
24 | before_save :set_others_hash | |
25 |
|
25 | |||
26 | def initialize(attributes=nil, *args) |
|
26 | def initialize(attributes=nil, *args) | |
27 | super |
|
27 | super | |
28 | self.others ||= {} |
|
28 | self.others ||= {} |
General Comments 0
You need to be logged in to leave comments.
Login now