mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-10 17:03:56 +08:00
14 lines
418 B
Ruby
14 lines
418 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Api
|
||
|
module V1
|
||
|
class InventoryColumnSerializer < ActiveModel::Serializer
|
||
|
type :inventory_columns
|
||
|
attributes :name, :data_type
|
||
|
has_many :repository_list_items, key: :inventory_list_items,
|
||
|
serializer: InventoryListItemSerializer,
|
||
|
class_name: 'RepositoryListItem'
|
||
|
end
|
||
|
end
|
||
|
end
|