mirror of
https://github.com/flarum/core.git
synced 2025-08-20 15:21:49 +02:00
Hello world!
This commit is contained in:
14
ember/app/serializers/application.js
Normal file
14
ember/app/serializers/application.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user