This gets the plugin running again without name collisions. A solid starting point
13 lines
250 B
JavaScript
13 lines
250 B
JavaScript
|
|
export default function() {
|
|
const { disabled_plugins = [] } = this.site;
|
|
|
|
if (disabled_plugins.indexOf("discourse-patrons") !== -1) {
|
|
return;
|
|
}
|
|
|
|
this.route("patrons", function() {
|
|
this.route("show", { path: ":payment_id" });
|
|
});
|
|
}
|