Skip to content

Persisting Cargo needs improvement #45

@paulrayner

Description

@paulrayner

Currently the store method in CargoRepository does a find first, then a delete if it finds a document. It does this because it had trouble detecting that a Cargo document already existing when doing an update after the Delivery object had been updated.

There should be a way to make this work without the find and delete step, and without having to store an extra Mongoid attribute in Cargo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions