Ruby DelegateClass
There are many ways to work with Ruby Objects. Inheritance, module inheritance, decorators, and composition are all commonly found in a codebase. The Single Table Inheritance pattern is a common pattern in Rails applications to share responsibilities between classes and store all records in the same place. This approach can work just fine, but it might be beneficial to think outside the single table for a second.
Post a comment