X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/179fe4f715bf903481329feb726b73637cfb5466..7be823bb11ad2aa93ffd4d85cc7f11469a867fa2:/app/models/spam_observer.rb 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