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.
19 lines
470 B
Ruby
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
|