method

validate

rails latest stable - Class: ActiveModel::EachValidator
validate(record)
public

Performs validation on the supplied record. By default this will call validate_each to determine validity therefore subclasses should override validate_each with validation logic.