Created
February 18, 2015 00:33
-
-
Save ssebro/2574966f2dd3b8ccc252 to your computer and use it in GitHub Desktop.
Upsert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adapter.upsert = function (model, id, update) { | |
return adapter.update(model,id,update,{upsert:true}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment