mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
ea8b4277b0
refs TryGhost/Ghost#7860 - removes post type filter links - adds dropdown filters for post type, author, and tag - replaces custom refresh on query params change with Ember's standard `refreshModel` config
11 lines
268 B
JavaScript
11 lines
268 B
JavaScript
import {Model, hasMany} from 'ember-cli-mirage';
|
|
|
|
export default Model.extend({
|
|
// used by the serializer to determine whether
|
|
// or not to include the post count
|
|
postCount: false,
|
|
|
|
roles: hasMany(),
|
|
posts: hasMany('post', {inverse: 'author'})
|
|
});
|