Commit 80289c5a authored by Jean-Philippe Lang's avatar Jean-Philippe Lang Committed by Holger Just

Set user_id as a protected attribute (#922).

parent 902c624b
...@@ -16,7 +16,7 @@ class UserPreference < ActiveRecord::Base ...@@ -16,7 +16,7 @@ class UserPreference < ActiveRecord::Base
belongs_to :user belongs_to :user
serialize :others serialize :others
attr_protected :others attr_protected :others, :user_id
def initialize(attributes = nil) def initialize(attributes = nil)
super super
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment