]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/spam_observer.rb
Remove unused parameter
[rails.git] / app / models / spam_observer.rb
index 888b4a0b9cb6719624a509a343dc21fc717857f4..07fa84ffd07c6975d0043c71b086d62cbbda2fc2 100644 (file)
@@ -9,7 +9,7 @@ class SpamObserver < ActiveRecord::Observer
     end
 
     if user.status == "active" and user.spam_score > SPAM_THRESHOLD
     end
 
     if user.status == "active" and user.spam_score > SPAM_THRESHOLD
-      user.update_attributes(:status => "suspended")
+      user.update_column(:status, "suspended")
     end
   end
 end
     end
   end
 end