tech(clean): remove Column classname: attribute
Co-authored-by: mfo <mfo@users.noreply.github.com>
This commit is contained in:
parent
30fcb75da4
commit
3677f3b2d3
6 changed files with 50 additions and 45 deletions
|
@ -3,14 +3,13 @@
|
|||
class Column
|
||||
TYPE_DE_CHAMP_TABLE = 'type_de_champ'
|
||||
|
||||
attr_reader :table, :column, :label, :classname, :type, :scope, :value_column, :filterable, :displayable
|
||||
attr_reader :table, :column, :label, :type, :scope, :value_column, :filterable, :displayable
|
||||
|
||||
def initialize(procedure_id:, table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, classname: '', scope: '')
|
||||
def initialize(procedure_id:, table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, scope: '')
|
||||
@procedure_id = procedure_id
|
||||
@table = table
|
||||
@column = column
|
||||
@label = label || I18n.t(column, scope: [:activerecord, :attributes, :procedure_presentation, :fields, table])
|
||||
@classname = classname
|
||||
@type = type
|
||||
@scope = scope
|
||||
@value_column = value_column
|
||||
|
@ -29,7 +28,7 @@ class Column
|
|||
|
||||
def to_json
|
||||
{
|
||||
table:, column:, label:, classname:, type:, scope:, value_column:, filterable:, displayable:
|
||||
table:, column:, label:, type:, scope:, value_column:, filterable:, displayable:
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue