0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/app/transforms/raw.js
Kevin Ansfield 161591fc3d Update client for tag.post_count -> tag.count.posts rename
refs #6105
- adds `raw` ember-data transform to handle standard JSON `count` attribute
- update mirage factory to return correct `count.posts` format
- rename all uses of `post_count` to `count.posts`
2015-11-23 19:57:56 +00:00

13 lines
245 B
JavaScript

import DS from 'ember-data';
const {Transform} = DS;
export default Transform.extend({
deserialize: function (serialized) {
return serialized;
},
serialize: function (deserialized) {
return deserialized;
}
});