You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the below Roar::Decorator and I want to join 2 collections into 1 to have object.images an array with all the original and suggested images from a json file. Is it possible? Right know the last definition of collection images will always override the collection.
Sorry, this is not possible, you need to map your data before you pass it into the representer. Remember, Representable/Roar is a document-transformation tool and not a data mapper (even though many people misuse it as this). 😜
The reason this doesn't work is that when parsing, Roar wouldn't know where to add the images, to originals or to suggested?
I have the below
Roar::Decorator
and I want to join 2 collections into 1 to haveobject.images
an array with all the original and suggested images from a json file. Is it possible? Right know the last definition of collection images will always override the collection.JSON file:
The text was updated successfully, but these errors were encountered: