Skip to content

Instantly share code, notes, and snippets.

@adamsrog
Created July 27, 2014 00:32
Show Gist options
  • Save adamsrog/ca8184036050a6e6df6b to your computer and use it in GitHub Desktop.
Save adamsrog/ca8184036050a6e6df6b to your computer and use it in GitHub Desktop.
import DS from 'ember-data';
export default DS.RESTSerializer.extend({
normalizePayload: function(payload) {
// ember-data expects the data to be labeled { <your-model>: { ... } }
var newPayload = { "board":payload };
return newPayload;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment