[#3477] Cleaner way to return no dossiers

This commit is contained in:
Frederic Merizen 2019-02-27 11:36:04 +01:00 committed by Frederic Merizen
parent d24fb5d186
commit 9096f923b1

View file

@ -180,7 +180,7 @@ class ProcedurePresentation < ApplicationRecord
.map { |date| @dossiers.where(column => date..(date + 1.day)) } .map { |date| @dossiers.where(column => date..(date + 1.day)) }
.reduce(:or) .reduce(:or)
else else
[] @dossiers.none
end end
end end