displays results for booth

This commit is contained in:
rgarcia
2017-10-18 20:25:36 +02:00
parent cf400f3082
commit 34ee16a1c1
3 changed files with 26 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ class Admin::Poll::BoothAssignmentsController < Admin::Poll::BaseController
@booth_assignment = @poll.booth_assignments.includes(:recounts, :voters,
officer_assignments: [officer: [:user]]).find(params[:id])
@voters_by_date = @booth_assignment.voters.group_by {|v| v.created_at.to_date}
@partial_results = @booth_assignment.partial_results
end
def create