remove column.virtual params
This commit is contained in:
parent
3c7c58623f
commit
245f7bb975
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
class Column
|
class Column
|
||||||
attr_reader :table, :column, :label, :classname, :type, :scope, :value_column, :filterable, :displayable
|
attr_reader :table, :column, :label, :classname, :type, :scope, :value_column, :filterable, :displayable
|
||||||
|
|
||||||
def initialize(table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, classname: '', scope: '', virtual: nil)
|
def initialize(table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, classname: '', scope: '')
|
||||||
@table = table
|
@table = table
|
||||||
@column = column
|
@column = column
|
||||||
@label = label || I18n.t(column, scope: [:activerecord, :attributes, :procedure_presentation, :fields, table])
|
@label = label || I18n.t(column, scope: [:activerecord, :attributes, :procedure_presentation, :fields, table])
|
||||||
|
@ -13,7 +13,7 @@ class Column
|
||||||
@value_column = value_column
|
@value_column = value_column
|
||||||
@filterable = filterable
|
@filterable = filterable
|
||||||
# We need this for backward compatibility
|
# We need this for backward compatibility
|
||||||
@displayable = virtual ? false : displayable
|
@displayable = displayable
|
||||||
end
|
end
|
||||||
|
|
||||||
def id
|
def id
|
||||||
|
|
Loading…
Reference in a new issue