framework/ember/app/serializers/application.js

15 lines
299 B
JavaScript
Raw Normal View History

2014-12-20 14:26:46 +08:00
import Ember from 'ember';
import DS from 'ember-data';
export default DS.JsonApiSerializer.extend({
normalize: function(type, hash, property) {
var json = {};
for (var prop in hash) {
json[prop.camelize()] = hash[prop];
}
return this._super(type, json, property);
}
});