adds automatic recount to admin poll and paginates recounts
This commit is contained in:
@@ -2,7 +2,10 @@ class Admin::Poll::RecountsController < Admin::BaseController
|
||||
before_action :load_poll
|
||||
|
||||
def index
|
||||
@booth_assignments = @poll.booth_assignments.includes(:recounts, :final_recounts)
|
||||
@booth_assignments = @poll.booth_assignments.
|
||||
includes(:booth, :recounts, :final_recounts, :voters).
|
||||
order(created_at: :desc).
|
||||
page(params[:page]).per(50)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user