Merge pull request #2811 from betagouv/frederic/remove-dead-code

Remove dead code
This commit is contained in:
Frederic Merizen 2018-10-11 12:12:43 +02:00 committed by GitHub
commit 58d4ee17d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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