A Pattern for STIs in Rails
Oct 31, 2022 · 3 min read · The Problem Active Record provides STIs to easily work with hierarchies of (persisted) models. They have a few rough edges, however: Active Record needs to know the entire hierarchy to be able to build correct queries. This is at odds with lazy load...
CDchaadow and 1 more commented