Overwriting controllers in plugin

Ideally, you’ll want to reopen the controller inside an initializer.

Have a look at the “initialize code” section under Beginner's Guide to Creating Discourse Plugins - Part 1. :slight_smile:

4 Likes