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