Flowdock
method

find_finder_class_for

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - 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.

Show source
Register or log in to add new notes.