Delegated Types is a pattern for representing class hierarchies in Active Record ORMs using polymorphic relationships instead of inheritance. By creating a shared root model (like Entry) that connects to specialized models through morphTo relationships, you can add shared behavior across models, build recursive hierarchies, and

18m read timeFrom tighten.com
Post cover image
Table of contents
IntroductionDelegated Types1. Shared Behavior2. Richer Hierarchies3. Immutability and History

Sort: