mirror of
https://github.com/flarum/framework.git
synced 2025-01-24 10:22:59 +08:00
15 lines
299 B
JavaScript
15 lines
299 B
JavaScript
|
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);
|
||
|
}
|
||
|
});
|