method

validate

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

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