mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-27 02:16:20 +08:00
14 lines
299 B
Ruby
14 lines
299 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Api
|
||
|
module V1
|
||
|
class ProjectUserAssignmentSerializer < ActiveModel::Serializer
|
||
|
type :user_projects
|
||
|
attributes :id
|
||
|
|
||
|
belongs_to :user, serializer: UserSerializer
|
||
|
belongs_to :user_role, serializer: UserRoleSerializer
|
||
|
end
|
||
|
end
|
||
|
end
|