mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-05 04:34:37 +08:00
removed attributes
This commit is contained in:
parent
fa54badb9a
commit
98ef3585a3
3 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ module Api
|
|||
module V1
|
||||
class ExperimentSerializer < ActiveModel::Serializer
|
||||
type :experiments
|
||||
attributes :id, :name, :description, :created_by_id, :archived
|
||||
attributes :id, :name, :description, :archived
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,7 +4,7 @@ module Api
|
|||
module V1
|
||||
class MyModuleGroupSerializer < ActiveModel::Serializer
|
||||
type :task_groups
|
||||
attributes :id, :created_by_id, :experiment_id
|
||||
attributes :id, :experiment_id
|
||||
belongs_to :experiment, serializer: ExperimentSerializer
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,8 +4,8 @@ module Api
|
|||
module V1
|
||||
class ProtocolSerializer < ActiveModel::Serializer
|
||||
type :protocols
|
||||
attributes :id, :name, :authors, :description, :added_by_id,
|
||||
:my_module_id, :team_id, :protocol_type, :parent_id,
|
||||
attributes :id, :name, :authors, :description,
|
||||
:my_module_id, :team_id, :protocol_type,
|
||||
:nr_of_linked_children
|
||||
belongs_to :my_module, serializer: MyModuleSerializer
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue