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. 
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. 