a champ_column can have options_for_select
This commit is contained in:
parent
2c8ee1f2c1
commit
9e5713f470
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Columns::ChampColumn < Column
|
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
|
@stable_id = stable_id
|
||||||
@tdc_type = tdc_type
|
@tdc_type = tdc_type
|
||||||
|
@options_for_select = options_for_select
|
||||||
|
|
||||||
super(
|
super(
|
||||||
procedure_id:,
|
procedure_id:,
|
||||||
|
|
Loading…
Reference in a new issue