Do people prefer sub-classing with default scopes and a type enum column to STI sub-classes with a type/class column?
#activerecord
sub-class + default_scope
7.1%
STI sub-classes
92.9%
Poll ended at .
@postmodern The one time I've run into this, we did STI sub-classes. I've often been told that default scopes are a hard avoid.
@postmodern Either approach can work or otherwise easily get out of hand though I’ve found default scope to be the more frustrating of the two.
@rossta how so? Can't you just drop down to the base-class to bypass the default scope filtering?