diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-27 11:17:44 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-27 11:17:44 -0300 |
commit | f3ae917be46a2fc4c38691a957330310ae7b3b29 (patch) | |
tree | 0fbf873fe3c5813cfbb01e5faabe27cf8c91169c /guides | |
parent | 242632167c0797ce2b5a212f67b2179c6c6b38e1 (diff) | |
parent | 98d1ea7411d49d886889689b29acd0ec92d2622d (diff) | |
download | rails-f3ae917be46a2fc4c38691a957330310ae7b3b29.tar.gz rails-f3ae917be46a2fc4c38691a957330310ae7b3b29.tar.bz2 rails-f3ae917be46a2fc4c38691a957330310ae7b3b29.zip |
Merge pull request #19110 from aditya-kapoor/fix-val-doc
[ci-skip] correct doc about custom validators
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index d65c15bcf3..f19934fe89 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -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. |