mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
161591fc3d
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`
13 lines
245 B
JavaScript
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;
|
|
}
|
|
});
|