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

13 lines
269 B
Ruby

# frozen_string_literal: true
module Api
module V1
class UserProjectSerializer < ActiveModel::Serializer
type :user_projects
attributes :id, :role
belongs_to :user, serializer: UserSerializer
include TimestampableModel
end
end
end