mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
13 lines
331 B
Ruby
13 lines
331 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class ResultSerializer < ActiveModel::Serializer
|
|
type :results
|
|
attributes :id, :name, :my_module_id, :user_id, :archived, :result_text,
|
|
:result_table, :result_asset
|
|
|
|
belongs_to :my_module, serializer: MyModuleSerializer
|
|
end
|
|
end
|
|
end
|