TryGhost/Ghost

View on GitHub
ghost/admin/mirage/models/user.js

Summary

Maintainability
A
0 mins
Test Coverage
import {Model, hasMany} from 'miragejs';

export default Model.extend({
    // used by the serializer to determine whether
    // or not to include the post count
    postCount: false,

    roles: hasMany(),
    posts: hasMany(),
    postRevision: hasMany()
});