Take loop out of remove_mentions

This commit is contained in:
Raphael Sofaer 2011-06-14 10:17:22 -07:00
parent 10f5d658b2
commit 305c107ba1

View file

@ -345,8 +345,6 @@ class User < ActiveRecord::Base
end
def remove_mentions
Mention.where( :person_id => self.person.id).each do |mentioned_person|
mentioned_person.delete
end
Mention.where( :person_id => self.person.id).delete_all
end
end