removed attributes

This commit is contained in:
Zanz2 2018-09-11 15:41:38 +02:00
parent 23f74a5b9b
commit 68385b36cc

View file

@ -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