Skip to content

Conversation

@paulbdavis
Copy link
Contributor

Adds Atomic updates to numerical attributes

Also completes test coverage for other holes

Travis CI build passes

Allows `{atomic: true}` to be set on an attribute, which triggers using
`$inc` instead of `$set` when updating the field
@coveralls
Copy link

Coverage Status

Coverage increased (+5.26%) when pulling 425affb on paulbdavis:atomic-attributes into 55d7c87 on modella:master.

@rschmukler
Copy link
Member

This is a fantastic addition, thank you! If you ever feel like going crazy, you could also do the same thing with Array based arguments using $push and $pull. Anyway, merging! Thanks again.

rschmukler added a commit that referenced this pull request Jul 10, 2014
@rschmukler rschmukler merged commit a627267 into modella:master Jul 10, 2014
@paulbdavis paulbdavis deleted the atomic-attributes branch October 8, 2014 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants