Sequel by design does not save entire object graphs. Its association modification methods are designed to be very direct and not offer a lot of abstraction.
Rather than creating the records inline, we need to support creating the associated objects and then adding them to the parent.
Another option would be to make use of the nested attributes plugin but that might be even messier...
Sequel by design does not save entire object graphs. Its association modification methods are designed to be very direct and not offer a lot of abstraction.
Rather than creating the records inline, we need to support creating the associated objects and then adding them to the parent.
Another option would be to make use of the nested attributes plugin but that might be even messier...