Skip to content

Instantly share code, notes, and snippets.

@hhff
Created August 12, 2015 10:20
Show Gist options
  • Save hhff/f6e8c5614707707161cc to your computer and use it in GitHub Desktop.
Save hhff/f6e8c5614707707161cc to your computer and use it in GitHub Desktop.
JSONAPI Ember Adapter for AMS RC
import Ember from 'ember';
import DS from 'ember-data';
const underscore = Ember.String.underscore;
export default DS.JSONAPISerializer.extend({
keyForAttribute(attr) {
return underscore(attr);
},
keyForRelationship(rawKey) {
return underscore(rawKey);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment