Files
grecia/app/controllers/admin/poll/recounts_controller.rb
Javi Martín 09c63e354c Add and apply Layout/DotPosition rule
Since IRB has improved its support for multiline, the main argument
towars using a trailing dot no longer affects most people.

It still affects me, though, since I use Pry :), but I agree
leading dots are more readable, so I'm enabling the rule anyway.
2023-08-18 14:56:16 +02:00

19 lines
470 B
Ruby

class Admin::Poll::RecountsController < Admin::Poll::BaseController
before_action :load_poll
def index
@stats = Poll::Stats.new(@poll)
@booth_assignments = @poll.booth_assignments
.includes(:booth, :recounts, :voters)
.order("poll_booths.name")
.page(params[:page]).per(50)
end
private
def load_poll
@poll = ::Poll.find(params[:poll_id])
end
end