ruby-grape/grape-active_model_serializers

Remove Default Root Node

Closed this issue · 1 comments

Is it possible to remove the default array root?

Figured it out.

Pass a root: false along with the namespace -

 namespace persons, root: false do
   ...
 end