From 917d7324a6f1d3f6256b1a541a912ccee84097d1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 10 Mar 2012 14:42:09 +0000 Subject: [PATCH] Avoid mass assignment error in spam observer --- app/models/spam_observer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spam_observer.rb b/app/models/spam_observer.rb index 888b4a0b9..07fa84ffd 100644 --- a/app/models/spam_observer.rb +++ b/app/models/spam_observer.rb @@ -9,7 +9,7 @@ class SpamObserver < ActiveRecord::Observer end if user.status == "active" and user.spam_score > SPAM_THRESHOLD - user.update_attributes(:status => "suspended") + user.update_column(:status, "suspended") end end end -- 2.39.5