From 9096f923b15e6ba1a048d3c924c065df5ee8d405 Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Wed, 27 Feb 2019 11:36:04 +0100 Subject: [PATCH] [#3477] Cleaner way to return no dossiers --- app/models/procedure_presentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/procedure_presentation.rb b/app/models/procedure_presentation.rb index e2e16656a..4a9bbb59b 100644 --- a/app/models/procedure_presentation.rb +++ b/app/models/procedure_presentation.rb @@ -180,7 +180,7 @@ class ProcedurePresentation < ApplicationRecord .map { |date| @dossiers.where(column => date..(date + 1.day)) } .reduce(:or) else - [] + @dossiers.none end end