mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 22:59:57 +08:00
Clean up, don't use mixin
PhpStorm/WebStorm doesn't like the mixin syntax, and it's clearer to just use Object.assign.
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
import Model from 'flarum/Model';
|
||||
import mixin from 'flarum/utils/mixin';
|
||||
|
||||
export default class Forum extends mixin(Model, {
|
||||
canStartDiscussion: Model.attribute('canStartDiscussion')
|
||||
}) {
|
||||
export default class Forum extends Model {
|
||||
apiEndpoint() {
|
||||
return '/forum';
|
||||
}
|
||||
|
Reference in New Issue
Block a user