Created
July 27, 2014 00:32
-
-
Save adamsrog/ca8184036050a6e6df6b to your computer and use it in GitHub Desktop.
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
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