fixes #2480: Report for contributors

This commit is contained in:
r888888888
2015-08-07 17:23:11 -07:00
parent 10b2523ac3
commit e37775afc2
8 changed files with 82 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
require 'statistics2'
module Reports
class Contributors < User
def users
::User.where("users.level >= ? and users.post_upload_count >= 250", ::User::Levels::CONTRIBUTOR).order("created_at desc").limit(50).map {|x| Reports::UserPromotions::User.new(x)}
end
end
end