diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-06 20:57:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-06 20:57:33 +0000 |
commit | 87356648f659c8ed9e1310b81a77e7fdeec332af (patch) | |
tree | 89148a67e896765704446aaced726bd4d0314e31 /app | |
parent | efddab48bed65c55c57ac9b95c40a42f059a136f (diff) | |
download | redmine-87356648f659c8ed9e1310b81a77e7fdeec332af.tar.gz redmine-87356648f659c8ed9e1310b81a77e7fdeec332af.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user_preference.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index 836ec6b26..55bbb7e16 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -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 |