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

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