a champ_column can have options_for_select

This commit is contained in:
simon lehericey 2024-11-06 11:24:27 +01:00
parent 2c8ee1f2c1
commit 9e5713f470
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -1,11 +1,12 @@
# frozen_string_literal: true
class Columns::ChampColumn < Column
attr_reader :stable_id
attr_reader :stable_id, :options_for_select
def initialize(procedure_id:, label:, stable_id:, tdc_type:, displayable: true, filterable: true, type: :text, value_column: :value)
def initialize(procedure_id:, label:, stable_id:, tdc_type:, displayable: true, filterable: true, type: :text, value_column: :value, options_for_select: [])
@stable_id = stable_id
@tdc_type = tdc_type
@options_for_select = options_for_select
super(
procedure_id:,