ProcedurePresentation.filterable_fields_options -> InstructeurFilterComponent.filterable_fields_options
This commit is contained in:
parent
379c9fb812
commit
41ea39abb1
4 changed files with 28 additions and 33 deletions
|
@ -31,14 +31,6 @@ class ProcedurePresentation < ApplicationRecord
|
|||
]
|
||||
end
|
||||
|
||||
def filterable_fields_options
|
||||
procedure.facets.filter_map do |facet|
|
||||
next if facet.filterable == false
|
||||
|
||||
[facet.label, facet.id]
|
||||
end
|
||||
end
|
||||
|
||||
def displayed_fields_for_headers
|
||||
[
|
||||
Facet.new(table: 'self', column: 'id', classname: 'number-col'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue