Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save visualjeff/ffdf0eaa1ba02104be47664e79a84865 to your computer and use it in GitHub Desktop.
Save visualjeff/ffdf0eaa1ba02104be47664e79a84865 to your computer and use it in GitHub Desktop.
Ember-data JSONAPIAdapter override to append rev to delete requests for couchdb.
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