Include ID in PUT request


Is there an easy way to include a model’s ID in the snapshot data send with a PUT request to the server?

record: {
  id: "my-awesome-id",

I’ve read that you can overwrite the updateRecord of the adapter, just as descripted in the documents. But I run in some authentication issues, and even than, it’s just ugly to overwrite the updateRecord method in every project just to only include an ID.


You can override serialize and just set includeId = true in the options hash: