|
|
|
|
|
by lentil
4736 days ago
|
|
If it helps you can make that the default for all your serializers, by doing something like this in an initializer: ActiveSupport.on_load(:active_model_serializers) do
ActiveModel::ArraySerializer.root = false
ActiveModel::Serializer.root = false
end
|
|