Running server side ruby code after an event

Context: We resort categories alphabetically manually after categories are changed. We’d like that to happen automatically after a category is saved.

How do you watch for the category saved event on discourse from the server side?

1 Like

You can adapt this example to your needs.

5 Likes