ccdb-web/app/serializers/application.js
2017-10-01 16:49:43 -07:00

10 lines
265 B
JavaScript

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('');
}
});