mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 07:26:20 +08:00
13 lines
349 B
Ruby
13 lines
349 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class ProjectCommentSerializer < ActiveModel::Serializer
|
|
type :project_comments
|
|
attributes :id, :message, :user_id, :created_at, :updated_at,
|
|
:last_modified_by_id, :type, :associated_id
|
|
|
|
belongs_to :project, serializer: ProjectSerializer
|
|
end
|
|
end
|
|
end
|