Remove dead code

Should have been removed as part of #2720 but was accidentally reintroduced
in #2770
This commit is contained in:
Frederic Merizen 2018-10-11 12:00:49 +02:00
parent 064b5c1d7b
commit 07b8838561

View file

@ -104,12 +104,6 @@ class ProcedurePresentation < ApplicationRecord
when 'self' when 'self'
date = filter['value'].to_date rescue nil date = filter['value'].to_date rescue nil
dossiers.where("DATE_TRUNC('day', #{column}) = ?", date) 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' when 'type_de_champ', 'type_de_champ_private'
relation = table == 'type_de_champ' ? :champs : :champs_private relation = table == 'type_de_champ' ? :champs : :champs_private
dossiers dossiers