Created
September 26, 2013 18:23
-
-
Save anonymous/6718391 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
App.ApplicationSerializer = DS.RESTSerializer.extend({ | |
normalizePayload: function (type, payload) { | |
// work with your payload here | |
if (type.toString().match(/Collection/)) { | |
return {'collections': payload} | |
} | |
// and return it | |
return payload; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment