Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 10:40:28 +01:00
10 Zeilen
324 B
Text
10 Zeilen
324 B
Text
|
import Site from "discourse/models/site";
|
||
|
|
||
|
export default Site.reopenClass({
|
||
|
// There is no site data actually loaded by the CW yet. This placeholder is
|
||
|
// needed by imported classes
|
||
|
createCurrent() {
|
||
|
const store = Discourse.__container__.lookup("service:store");
|
||
|
return store.createRecord("site", {});
|
||
|
},
|
||
|
})
|