implement super voters

This commit is contained in:
r888888888
2016-02-22 14:02:52 -08:00
parent caf4a28b02
commit 2a87aad34e
13 changed files with 189 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ class CommentVote < ActiveRecord::Base
attr_accessible :comment_id, :user_id, :score
def self.prune!
destroy_all("created_at < ?", 14.days.ago)
where("created_at < ?", 14.days.ago).delete_all
end
def self.search(params)