Set user_id as a protected attribute (#10390).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9139 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-03-06 20:57:33 +00:00
parent efddab48be
commit 87356648f6
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class UserPreference < ActiveRecord::Base
belongs_to :user
serialize :others
attr_protected :others
attr_protected :others, :user_id
before_save :set_others_hash