KB
Size: a a a
KB
NB
def as_json(object)
{
id: object.id,
name: object.name,
entities: object.entities.map{|e| entity_as_json(e) }
}
end
def entity_as_json(entity)
{
id: entity.id
description: entity.description
}
end
TP
jsonapi-serializer
, который отпочковался от fast_jsonapi
. Норм?w
w
w
w
w
DS
AD
AD
AD
AD
AD
w
AK
AK
w
v
AK