Sort booths by name and enable pagination
This commit is contained in:
@@ -55,7 +55,7 @@ class Admin::Poll::BoothAssignmentsController < Admin::Poll::BaseController
|
||||
end
|
||||
|
||||
def manage
|
||||
@booths = ::Poll::Booth.all
|
||||
@booths = ::Poll::Booth.all.order(name: :asc).page(params[:page]).per(300)
|
||||
@poll = Poll.find(params[:poll_id])
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user