mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-26 01:46:20 +08:00
removing attributes
This commit is contained in:
parent
6c51a14292
commit
a086d181f5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue