mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 05:02:18 +08:00
Demodulize column name in datatable helper
This commit is contained in:
parent
9e4ae525e6
commit
9524659e1d
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ module RepositoryDatatableHelper
|
|||
end
|
||||
|
||||
def display_cell_value(cell, team)
|
||||
value_name = cell.repository_column.data_type.underscore
|
||||
value_name = cell.repository_column.data_type.demodulize.underscore
|
||||
serializer_class = "RepositoryDatatable::#{cell.repository_column.data_type}Serializer".constantize
|
||||
serializer_class.new(
|
||||
cell.__send__(value_name),
|
||||
|
|
Loading…
Reference in a new issue