Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save typeoneerror/a86fccded869bc4ad3a9 to your computer and use it in GitHub Desktop.

Select an option

Save typeoneerror/a86fccded869bc4ad3a9 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
import DS from 'ember-data';
var underscore = Ember.String.underscore;
export default DS.JSONAPISerializer.extend({
keyForAttribute: function(attr) {
return underscore(attr);
},
keyForRelationship: function(rawKey) {
return underscore(rawKey);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment