Add and apply MultilineMethodCallIndentation rule
This commit is contained in:
@@ -43,12 +43,12 @@ class Officing::BallotSheetsController < Officing::BaseController
|
||||
|
||||
def load_officer_assignments
|
||||
@officer_assignments = ::Poll::OfficerAssignment
|
||||
.includes(booth_assignment: [:booth])
|
||||
.joins(:booth_assignment)
|
||||
.final
|
||||
.where(id: current_user.poll_officer.officer_assignment_ids)
|
||||
.where(poll_booth_assignments: { poll_id: @poll.id })
|
||||
.where(date: Date.current)
|
||||
.includes(booth_assignment: [:booth])
|
||||
.joins(:booth_assignment)
|
||||
.final
|
||||
.where(id: current_user.poll_officer.officer_assignment_ids)
|
||||
.where(poll_booth_assignments: { poll_id: @poll.id })
|
||||
.where(date: Date.current)
|
||||
end
|
||||
|
||||
def load_officer_assignment
|
||||
|
||||
@@ -22,11 +22,11 @@ class Officing::ResultsController < Officing::BaseController
|
||||
def index
|
||||
@booth_assignment = ::Poll::BoothAssignment.includes(:booth).find(index_params[:booth_assignment_id])
|
||||
if current_user.poll_officer.officer_assignments.final
|
||||
.where(booth_assignment_id: @booth_assignment.id).exists?
|
||||
.where(booth_assignment_id: @booth_assignment.id).exists?
|
||||
|
||||
@partial_results = ::Poll::PartialResult.includes(:question)
|
||||
.where(booth_assignment_id: index_params[:booth_assignment_id])
|
||||
.where(date: index_params[:date])
|
||||
.where(booth_assignment_id: index_params[:booth_assignment_id])
|
||||
.where(date: index_params[:date])
|
||||
@recounts = ::Poll::Recount.where(booth_assignment_id: @booth_assignment.id, date: index_params[:date])
|
||||
end
|
||||
end
|
||||
@@ -90,17 +90,17 @@ class Officing::ResultsController < Officing::BaseController
|
||||
|
||||
def load_officer_assignment
|
||||
@officer_assignment = current_user.poll_officer
|
||||
.officer_assignments.final.find_by(id: results_params[:officer_assignment_id])
|
||||
.officer_assignments.final.find_by(id: results_params[:officer_assignment_id])
|
||||
end
|
||||
|
||||
def load_officer_assignments
|
||||
@officer_assignments = ::Poll::OfficerAssignment
|
||||
.includes(booth_assignment: [:booth])
|
||||
.joins(:booth_assignment)
|
||||
.final
|
||||
.where(id: current_user.poll_officer.officer_assignment_ids)
|
||||
.where(poll_booth_assignments: { poll_id: @poll.id })
|
||||
.where(date: Date.current)
|
||||
.includes(booth_assignment: [:booth])
|
||||
.joins(:booth_assignment)
|
||||
.final
|
||||
.where(id: current_user.poll_officer.officer_assignment_ids)
|
||||
.where(poll_booth_assignments: { poll_id: @poll.id })
|
||||
.where(date: Date.current)
|
||||
end
|
||||
|
||||
def load_partial_results
|
||||
|
||||
Reference in New Issue
Block a user