counts votes instead of ballots

This commit is contained in:
rgarcia
2017-06-30 23:48:18 +02:00
committed by Javi Martín
parent cdece48898
commit e5ec0bf6bb

View File

@@ -31,7 +31,7 @@ class Budget
end end
def total_votes def total_votes
stats_cache("total_votes") { @budget.ballots.count } stats_cache("total_votes") { @budget.ballots.map(&:lines).count }
end end
def total_selected_investments def total_selected_investments