Remove final result usage on admin poll officer assignments results

This commit is contained in:
Bertocq
2017-09-19 01:13:01 +02:00
parent 1c1bb7bf38
commit a3bf69e78d
15 changed files with 26 additions and 59 deletions

View File

@@ -18,7 +18,7 @@ class Admin::Poll::OfficerAssignmentsController < Admin::BaseController
@officer = ::Poll::Officer.includes(:user).find(officer_assignment_params[:officer_id])
@officer_assignments = ::Poll::OfficerAssignment.
joins(:booth_assignment).
includes(:final_recounts, booth_assignment: :booth).
includes(:total_results, booth_assignment: :booth).
where("officer_id = ? AND poll_booth_assignments.poll_id = ?", @officer.id, @poll.id).
order(:date)
end