mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
c4c48d4104
refs https://github.com/TryGhost/Admin/pull/2209 - `miragejs` has been extracted to a framework-independent library, the re-exports of `miragejs` elements in `ember-cli-mirage` have been deprecated making our test logs very noisy - added `miragejs` as a top-level dependency - updated all relevant imports to pull from `miragejs` instead of `ember-cli-mirage`
11 lines
233 B
JavaScript
11 lines
233 B
JavaScript
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()
|
|
});
|