mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
Upgrade to latest ember, cli, etc.
ember 1.11.0-beta.3 fixes a demo-blocking bug. ember-json-api 0.3.0 fixes a bug so we can remove custom serializer code.
This commit is contained in:
@@ -1,22 +1,4 @@
|
||||
import JsonApiSerializer from 'ember-json-api/json-api-serializer';
|
||||
|
||||
export default 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);
|
||||
},
|
||||
|
||||
// We can get rid of this after
|
||||
// https://github.com/kurko/ember-json-api/pull/59 is merged.
|
||||
extractMeta: function(store, type, payload) {
|
||||
if (payload && payload.meta) {
|
||||
store.setMetadataFor(type, payload.meta);
|
||||
delete payload.meta;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user