Created
August 12, 2015 10:20
-
-
Save hhff/f6e8c5614707707161cc to your computer and use it in GitHub Desktop.
JSONAPI Ember Adapter for AMS RC
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
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