mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
13 lines
343 B
Ruby
13 lines
343 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class ReportSerializer < ActiveModel::Serializer
|
|
type :reports
|
|
attributes :id, :name, :description, :project_id, :user_id, :created_at,
|
|
:updated_at, :last_modified_by_id, :team_id
|
|
|
|
belongs_to :project, serializer: ProjectSerializer
|
|
end
|
|
end
|
|
end
|