From 87356648f659c8ed9e1310b81a77e7fdeec332af Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 6 Mar 2012 20:57:33 +0000 Subject: [PATCH] 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 --- app/models/user_preference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5