Created
April 10, 2017 01:26
-
-
Save pcambra/aad1f1af0a889d21cc3255d41dbde8bf 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
const { String: { underscore } } = Ember; | |
export default JSONAPISerializer.extend({ | |
// Keep Drupal underscored keys. | |
keyForRelationship(key) { | |
return underscore(key); | |
}, | |
keyForAttribute(key) { | |
return underscore(key); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment