mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
14 lines
465 B
Ruby
14 lines
465 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V2
|
|
class InventoryItemRelationshipSerializer < ActiveModel::Serializer
|
|
type :inventory_item_relationships
|
|
|
|
belongs_to :parent, serializer: Api::V1::InventoryItemSerializer
|
|
belongs_to :child, serializer: Api::V1::InventoryItemSerializer
|
|
belongs_to :created_by, serializer: Api::V1::UserSerializer
|
|
belongs_to :last_modified_by, serializer: Api::V1::UserSerializer
|
|
end
|
|
end
|
|
end
|