X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/179fe4f715bf903481329feb726b73637cfb5466..7f89545b2cc5b6ae020aa11431fc4b28c5cfa436:/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