]> source.dussan.org Git - redmine.git/commitdiff
Set user_id as a protected attribute (#10390).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 6 Mar 2012 20:57:33 +0000 (20:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 6 Mar 2012 20:57:33 +0000 (20:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9139 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/user_preference.rb

index 836ec6b26a71497a197c95109665a6c8e1007071..55bbb7e16db457090f9e0dad6a3014d4703948db 100644 (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