clean: use groupe_instructeur?
This commit is contained in:
parent
ae7260829d
commit
2c8ee1f2c1
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Instructeurs::ColumnFilterValueComponent < ApplicationComponent
|
||||||
def options_for_select_of_column
|
def options_for_select_of_column
|
||||||
if column.scope.present?
|
if column.scope.present?
|
||||||
I18n.t(column.scope).map(&:to_a).map(&:reverse)
|
I18n.t(column.scope).map(&:to_a).map(&:reverse)
|
||||||
elsif column.table == 'groupe_instructeur'
|
elsif column.groupe_instructeur?
|
||||||
current_instructeur.groupe_instructeurs.filter_map do
|
current_instructeur.groupe_instructeurs.filter_map do
|
||||||
if _1.procedure_id == procedure_id
|
if _1.procedure_id == procedure_id
|
||||||
[_1.label, _1.id]
|
[_1.label, _1.id]
|
||||||
|
|
Loading…
Add table
Reference in a new issue