scinote-web/app/serializers/api/v1/inventory_serializer.rb

14 lines
282 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Api
module V1
class InventorySerializer < ActiveModel::Serializer
type :inventories
attributes :id, :name, :archived
belongs_to :created_by, serializer: UserSerializer
include TimestampableModel
end
end
end