|
|
@ -13,17 +13,33 @@
|
|
|
|
# ]
|
|
|
|
# ]
|
|
|
|
# }]
|
|
|
|
# }]
|
|
|
|
|
|
|
|
|
|
|
|
json.array! @repertoires do |rep|
|
|
|
|
# json.array! @repertoires do |rep|
|
|
|
|
json.id rep.id
|
|
|
|
# json.id rep.id
|
|
|
|
json.name rep.name
|
|
|
|
# json.name rep.name
|
|
|
|
|
|
|
|
# json.sub_repertoires do
|
|
|
|
|
|
|
|
# json.array! rep.sub_repertoires do |sub|
|
|
|
|
|
|
|
|
# json.id sub.id
|
|
|
|
|
|
|
|
# json.name sub.name
|
|
|
|
|
|
|
|
# json.tags do
|
|
|
|
|
|
|
|
# json.array! sub.tag_repertoires do |tag|
|
|
|
|
|
|
|
|
# json.id tag.id
|
|
|
|
|
|
|
|
# json.name tag.name
|
|
|
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
json.array! @sub_reps_map.keys do |rep|
|
|
|
|
|
|
|
|
json.extract! rep, :id, :name
|
|
|
|
|
|
|
|
|
|
|
|
json.sub_repertoires do
|
|
|
|
json.sub_repertoires do
|
|
|
|
json.array! rep.sub_repertoires do |sub|
|
|
|
|
json.array! @sub_reps_map[rep] do |sub_rep|
|
|
|
|
json.id sub.id
|
|
|
|
json.extract! sub_rep, :id, :name
|
|
|
|
json.name sub.name
|
|
|
|
|
|
|
|
json.tags do
|
|
|
|
json.tags do
|
|
|
|
json.array! sub.tag_repertoires do |tag|
|
|
|
|
json.array! @tags_map[sub_rep] do |tag|
|
|
|
|
json.id tag.id
|
|
|
|
json.extract! tag, :id, :name
|
|
|
|
json.name tag.name
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|