mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
15 lines
414 B
Ruby
15 lines
414 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Api
|
||
|
module V1
|
||
|
class ResultSerializer < ActiveModel::Serializer
|
||
|
type :results
|
||
|
attributes :id, :name, :my_module_id, :user_id, :created_at, :updated_at,
|
||
|
:archived, :archived_on, :last_modified_by_id, :archived_by_id,
|
||
|
:restored_by_id, :restored_on
|
||
|
|
||
|
belongs_to :my_module, serializer: MyModuleSerializer
|
||
|
end
|
||
|
end
|
||
|
end
|