-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
questionFurther information is requestedFurther information is requested
Milestone
Description
Assuming this is a valid question. How do I load one dictionary nested in another?
i.e.
in_p1 = { "id": 1, "name": "Parent 1", "children": { "id": 1, "name": "Child 2" }}
p1 = Parent.new_from_dict(in_p1);
pprint(p1, indent=3)
Both Parent and Child models are defined and work individually but not together. The relationship between children and parents are also defined and this too works but not with any of the create_new_instance methods.
Have I missed something?
Thanks
Mike
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested