[#3477] Minor simplification
This commit is contained in:
parent
c43cde5647
commit
02f35e655d
1 changed files with 1 additions and 2 deletions
|
@ -101,8 +101,7 @@ class ProcedurePresentation < ApplicationRecord
|
||||||
|
|
||||||
def filtered_ids(dossiers, statut)
|
def filtered_ids(dossiers, statut)
|
||||||
dossiers.each { |dossier| assert_matching_procedure(dossier) }
|
dossiers.each { |dossier| assert_matching_procedure(dossier) }
|
||||||
filters[statut].group_by { |filter| filter.slice('table', 'column') } .map do |field, filters|
|
filters[statut].group_by { |filter| filter.values_at('table', 'column') } .map do |(table, column), filters|
|
||||||
table, column = field.values_at('table', 'column')
|
|
||||||
values = filters.pluck('value')
|
values = filters.pluck('value')
|
||||||
case table
|
case table
|
||||||
when 'self'
|
when 'self'
|
||||||
|
|
Loading…
Reference in a new issue