reorders booth_assignments query
This commit is contained in:
@@ -4,7 +4,7 @@ class Admin::Poll::RecountsController < Admin::BaseController
|
|||||||
def index
|
def index
|
||||||
@booth_assignments = @poll.booth_assignments.
|
@booth_assignments = @poll.booth_assignments.
|
||||||
includes(:booth, :recounts, :final_recounts, :voters).
|
includes(:booth, :recounts, :final_recounts, :voters).
|
||||||
order(created_at: :desc).
|
order("poll_booths.name").
|
||||||
page(params[:page]).per(50)
|
page(params[:page]).per(50)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user