import Category from "discourse/models/category"; export default { name: "extend-category-for-solved", before: "inject-discourse-objects", initialize() { Category.reopen({ enable_accepted_answers: Ember.computed( "custom_fields.enable_accepted_answers", { get(fieldName) { return Ember.get(this.custom_fields, fieldName) === "true"; }, } ), }); }, };