adds Recounting tab to Poll's admin show view

This commit is contained in:
Juanjo Bazán
2017-01-31 13:40:53 +01:00
parent 547168be3f
commit a05297ea1a
7 changed files with 121 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ class Admin::Poll::PollsController < Admin::BaseController
end
def show
@poll = Poll.includes(:questions, booth_assignments: [:booth], officers: [:user]).order('poll_questions.title', 'poll_booths.name', 'users.username').find(params[:id])
@poll = Poll.includes(:questions, booth_assignments: [:booth, :final_recounts, :recounts], officers: [:user]).order('poll_questions.title', 'poll_booths.name', 'users.username').find(params[:id])
end
def new