chore(rubocop): fix Rails/WhereNotWithMultipleConditions

This commit is contained in:
Colin Darie 2023-04-19 11:27:46 +02:00
parent e9649b667e
commit 20f0b64736
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -22,7 +22,8 @@ class Traitement < ApplicationRecord
includes(:dossier)
.termine
.where(dossier: procedure.dossiers.visible_by_administration)
.where.not('dossiers.depose_at' => nil, processed_at: nil)
.where.not('dossiers.depose_at' => nil)
.where.not(processed_at: nil)
.order(:processed_at)
end
end