mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 00:23:01 +08:00
6b6a49428c
* Add additional info to API project_user_assignments type error [SCI-6273] * Generalize user_assignments api controllers [SCI-6237]
15 lines
297 B
Ruby
15 lines
297 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class UserAssignmentSerializer < ActiveModel::Serializer
|
|
type :user_assignments
|
|
attributes :id
|
|
belongs_to :user_role
|
|
belongs_to :user
|
|
belongs_to :assignable
|
|
|
|
include TimestampableModel
|
|
end
|
|
end
|
|
end
|