Skip to content

Commit

Permalink
show only confirmed backers
Browse files Browse the repository at this point in the history
  • Loading branch information
devton committed Feb 15, 2012
1 parent 4c007f1 commit 76bc405
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/reports/users/backers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ def most_backed(limit=20)
users.name,
count(backers.id) as count_backs
SQL
).order("count_backs desc").group("users.name, users.id").limit(limit)
).
where("backers.confirmed is true").
order("count_backs desc").
group("users.name, users.id").
limit(limit)

@csv = CSV.generate(:col_sep => ',') do |csv_string|

Expand Down

0 comments on commit 76bc405

Please sign in to comment.