79203210

Date: 2024-11-19 11:21:17
Score: 1
Natty:
Report link

You can pass a root key into the initializer method:

ActiveModelSerializers::SerializableResource.new(MyObject.new(name: 'Hi'), serializer: MyObjectSerializer, root: '')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: danbeggan