ENH: Create collections (#38)

Fixes #35
This commit is contained in:
Matthew Ryan Dillon 2017-10-01 16:49:43 -07:00 committed by GitHub
parent 09a62cf165
commit e1abc5e4cb
20 changed files with 260 additions and 6 deletions

View file

@ -0,0 +1,10 @@
import Ember from 'ember';
import DS from 'ember-data';
const { JSONAPISerializer } = DS;
export default JSONAPISerializer.extend({
payloadTypeFromModelName(modelName) {
return modelName.split('-').map(key => Ember.String.capitalize(key)).join('');
}
});