Set user_id as a protected attribute (#922).

This commit is contained in:
Jean-Philippe Lang 2012-03-06 20:57:33 +00:00 committed by Holger Just
parent 275163ead2
commit 3183aa55ed
1 changed files with 1 additions and 1 deletions

View File

@ -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