2020-06-22 02:13:10 +02:00
|
|
|
import Site from "discourse/models/site";
|
2022-03-16 12:33:34 +01:00
|
|
|
import { getOwner } from "discourse-common/lib/get-owner";
|
2020-06-22 02:13:10 +02:00
|
|
|
|
|
|
|
export default Site.reopenClass({
|
|
|
|
// There is no site data actually loaded by the CW yet. This placeholder is
|
|
|
|
// needed by imported classes
|
|
|
|
createCurrent() {
|
2022-03-16 12:33:34 +01:00
|
|
|
const store = getOwner(this).lookup("service:store");
|
2020-06-22 02:13:10 +02:00
|
|
|
return store.createRecord("site", {});
|
|
|
|
},
|
2021-03-28 11:06:49 +02:00
|
|
|
});
|