Add and apply Rails/WhereEquals rubocop rule

We were already following this style in most places.
This commit is contained in:
Javi Martín
2021-08-09 23:30:36 +02:00
parent 8ae138aa19
commit 884fd2b27b
8 changed files with 12 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ class Officing::BallotSheetsController < Officing::BaseController
joins(:booth_assignment).
final.
where(id: current_user.poll_officer.officer_assignment_ids).
where("poll_booth_assignments.poll_id = ?", @poll.id).
where(poll_booth_assignments: { poll_id: @poll.id }).
where(date: Date.current)
end