[#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)
|
||||
dossiers.each { |dossier| assert_matching_procedure(dossier) }
|
||||
filters[statut].group_by { |filter| filter.slice('table', 'column') } .map do |field, filters|
|
||||
table, column = field.values_at('table', 'column')
|
||||
filters[statut].group_by { |filter| filter.values_at('table', 'column') } .map do |(table, column), filters|
|
||||
values = filters.pluck('value')
|
||||
case table
|
||||
when 'self'
|
||||
|
|
Loading…
Reference in a new issue