From 07b883856183e024779bc3e0524777f6ee979e2f Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Thu, 11 Oct 2018 12:00:49 +0200 Subject: [PATCH] Remove dead code Should have been removed as part of #2720 but was accidentally reintroduced in #2770 --- app/models/procedure_presentation.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/models/procedure_presentation.rb b/app/models/procedure_presentation.rb index a29b966de..62d45475d 100644 --- a/app/models/procedure_presentation.rb +++ b/app/models/procedure_presentation.rb @@ -104,12 +104,6 @@ class ProcedurePresentation < ApplicationRecord when 'self' date = filter['value'].to_date rescue nil dossiers.where("DATE_TRUNC('day', #{column}) = ?", date) - - when 'france_connect_information' - dossiers - .includes(user: :france_connect_information) - .where("? ILIKE ?", "france_connect_informations.#{filter['column']}", "%#{filter['value']}%") - when 'type_de_champ', 'type_de_champ_private' relation = table == 'type_de_champ' ? :champs : :champs_private dossiers