mirror of
https://github.com/flarum/core.git
synced 2025-07-24 18:21:33 +02:00
Upgrade ember-cli to 0.1.4 and fix related breakage. closes #18
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import Ember from 'ember';
|
||||
import DS from 'ember-data';
|
||||
import JsonApiSerializer from 'ember-json-api/json-api-serializer';
|
||||
export default JsonApiSerializer.extend({
|
||||
normalize: function(type, hash, property) {
|
||||
var json = {};
|
||||
|
||||
export default DS.JsonApiSerializer.extend({
|
||||
normalize: function(type, hash, property) {
|
||||
var json = {};
|
||||
for (var prop in hash) {
|
||||
json[prop.camelize()] = hash[prop];
|
||||
}
|
||||
|
||||
for (var prop in hash) {
|
||||
json[prop.camelize()] = hash[prop];
|
||||
}
|
||||
|
||||
return this._super(type, json, property);
|
||||
}
|
||||
});
|
||||
return this._super(type, json, property);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user