Set user_id as a protected attribute (#922).
This commit is contained in:
parent
275163ead2
commit
3183aa55ed
|
@ -16,7 +16,7 @@ class UserPreference < ActiveRecord::Base
|
|||
belongs_to :user
|
||||
serialize :others
|
||||
|
||||
attr_protected :others
|
||||
attr_protected :others, :user_id
|
||||
|
||||
def initialize(attributes = nil)
|
||||
super
|
||||
|
|
Loading…
Reference in New Issue