remove scope arg from column.new 🎉
This commit is contained in:
parent
5532a8a48f
commit
9fd3a460cd
2 changed files with 46 additions and 47 deletions
|
@ -8,15 +8,14 @@ class Column
|
|||
|
||||
TYPE_DE_CHAMP_TABLE = 'type_de_champ'
|
||||
|
||||
attr_reader :table, :column, :label, :type, :scope, :value_column, :filterable, :displayable, :options_for_select
|
||||
attr_reader :table, :column, :label, :type, :value_column, :filterable, :displayable, :options_for_select
|
||||
|
||||
def initialize(procedure_id:, table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, scope: '', options_for_select: [])
|
||||
def initialize(procedure_id:, table:, column:, label: nil, type: :text, value_column: :value, filterable: true, displayable: true, options_for_select: [])
|
||||
@procedure_id = procedure_id
|
||||
@table = table
|
||||
@column = column
|
||||
@label = label || I18n.t(column, scope: [:activerecord, :attributes, :procedure_presentation, :fields, table])
|
||||
@type = type
|
||||
@scope = scope
|
||||
@value_column = value_column
|
||||
@filterable = filterable
|
||||
@displayable = displayable
|
||||
|
@ -34,7 +33,7 @@ class Column
|
|||
|
||||
def to_json
|
||||
{
|
||||
table:, column:, label:, type:, scope:, value_column:, filterable:, displayable:
|
||||
table:, column:, label:, type:, value_column:, filterable:, displayable:
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue