Merge pull request #2811 from betagouv/frederic/remove-dead-code
Remove dead code
This commit is contained in:
commit
58d4ee17d6
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue