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