Skip to content

Instantly share code, notes, and snippets.

@pcambra
Created April 10, 2017 01:26
Show Gist options
  • Save pcambra/aad1f1af0a889d21cc3255d41dbde8bf to your computer and use it in GitHub Desktop.
Save pcambra/aad1f1af0a889d21cc3255d41dbde8bf to your computer and use it in GitHub Desktop.
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