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:
1 parent
efddab48be
commit
87356648f6
1 file changed
+1
-1
@@ -19,7 +19,7 @@ class UserPreference < ActiveRecord::Base
|
|||||||
belongs_to :user
|
belongs_to :user
|
||||||
serialize :others
|
serialize :others
|
||||||
|
|
||||||
attr_protected :others
|
attr_protected :others, :user_id
|
||||||
|
|
||||||
before_save :set_others_hash
|
before_save :set_others_hash
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user