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

13 lines
316 B
Ruby

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