Created
March 2, 2017 16:04
-
-
Save rondale-sc/0f05ff31b3e1649ed3d386ad5d554f46 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.JSONSerializer.extend({ | |
normalize(typeClass, hash) { | |
// return JSON API document | |
}, | |
pushPayload(store, payload) { | |
let normalizedPayload = this.normalize(typeClass, payload); | |
return this._super(store, normalizedPayload); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment