module Mongoid::Traversable::DiscriminatorRetrieval

Module used for prepending the discriminator_value method.

A separate module was needed because the subclasses of this class need to be manually prepended with the discriminator_value and can’t rely on being a class_attribute because the .discriminator_value method is overriden by every subclass in the inherited method.

@api private