method

validate_each

rails latest stable - Class: ActiveModel::EachValidator
validate_each(record, attribute, value)
public

Override this method in subclasses with the validation logic, adding errors to the records errors array where necessary.