Add and apply Rails/RedundantActiveRecordAllMethod

This rule was introduced in rubocop-rails 2.21.0.
This commit is contained in:
Javi Martín
2023-10-03 19:45:00 +02:00
parent 522eb6cfa3
commit 0aee568977
17 changed files with 20 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ class Admin::Poll::BoothAssignmentsController < Admin::Poll::BaseController
end
def manage
@booths = ::Poll::Booth.all.order(name: :asc).page(params[:page]).per(300)
@booths = ::Poll::Booth.order(name: :asc).page(params[:page]).per(300)
@poll = Poll.find(params[:poll_id])
end