method
find_finder_class_for
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::Validations::UniquenessValidator
find_finder_class_for(record)protected
The check for an existing value should be run from a class that isn’t abstract. This means working down from the current class (self), to the first non-abstract class. Since classes don’t know their subclasses, we have to build the hierarchy between self and the record’s class.