I have many similar resources in my Rails application, and I'm currently DRY'd code using controller inheritance. I see that in the controller folder there is a directory called "problems" where I could write similar problems (for example, archiving, activation / deactivation, etc.). Perhaps I will also write mixtins.
Is there a preferred DRY approach for controller code? Is there a drawback to using inheritance, or are there any advantages using other methods?
source share