Created
May 14, 2016 20:57
-
-
Save visualjeff/ffdf0eaa1ba02104be47664e79a84865 to your computer and use it in GitHub Desktop.
Ember-data JSONAPIAdapter override to append rev to delete requests for couchdb.
This file contains hidden or 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
urlForDeleteRecord(id, modelName, snapshot) { | |
return this._super(...arguments) + `?rev=${snapshot._attributes.rev}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment