method
validate
v3.0.0 -
Show 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.
validate(record)Override this method in subclasses with validation logic, adding errors to the records errors array where necessary.