scinote-web/app/serializers/api/v1/project_user_assignment_serializer.rb
2021-05-31 21:48:18 +02:00

14 lines
310 B
Ruby

# frozen_string_literal: true
module Api
module V1
class ProjectUserAssignmentSerializer < ActiveModel::Serializer
type :project_user_assignments
attributes :id
belongs_to :user, serializer: UserSerializer
belongs_to :user_role, serializer: UserRoleSerializer
end
end
end