- ruby | ruby-interpreter
- ruby-activerecord (>= 2:4.0.2)
Discriminator is a gem which makes ActiveRecord smart about loading subclasses
from the database.
.
Ideally, we'd like to load up these Active Records from the databases, with
their subclasses already applied with discriminator, otherwise it's become
cumbersome to determine each type in the database.
.
This can be exceptionally helpful for a single table inheritance situation, or
something like events where there may be a large number of subclasses which
could have very different behavior per subclass.
Installed Size: 24.6 kB
Architectures: all