mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci-skip] correct doc about custom validators
This commit is contained in:
parent
242632167c
commit
98d1ea7411
1 changed files with 2 additions and 2 deletions
|
@ -917,8 +917,8 @@ write your own validators or validation methods as you prefer.
|
|||
|
||||
### Custom Validators
|
||||
|
||||
Custom validators are classes that extend `ActiveModel::Validator`. These
|
||||
classes must implement a `validate` method which takes a record as an argument
|
||||
Custom validators are classes that inherit from `ActiveModel::Validator`. These
|
||||
classes must implement the `validate` method which takes a record as an argument
|
||||
and performs the validation on it. The custom validator is called using the
|
||||
`validates_with` method.
|
||||
|
||||
|
|
Loading…
Reference in a new issue