Removing child root nodes in RABL

后端 未结 4 1791
情歌与酒
情歌与酒 2020-12-29 22:52

I\'m trying to render a pretty simple data structure using RABL, but I can\'t figure out how to remove the child root nodes properly. Here are my two templates.

Fir

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 23:43

    just putting it out there, in case you want to apply it for a specific child:

    child :files, :object_root => false do
      extends 'groups/_file'
    end
    

提交回复
热议问题