diff options
author | Aditya Kapoor <aditya.kapoor@vinsol.com> | 2015-02-27 19:25:25 +0530 |
---|---|---|
committer | Aditya Kapoor <aditya.kapoor@vinsol.com> | 2015-02-27 19:25:25 +0530 |
commit | 98d1ea7411d49d886889689b29acd0ec92d2622d (patch) | |
tree | 0fbf873fe3c5813cfbb01e5faabe27cf8c91169c | |
parent | 242632167c0797ce2b5a212f67b2179c6c6b38e1 (diff) | |
download | rails-98d1ea7411d49d886889689b29acd0ec92d2622d.tar.gz rails-98d1ea7411d49d886889689b29acd0ec92d2622d.tar.bz2 rails-98d1ea7411d49d886889689b29acd0ec92d2622d.zip |
[ci-skip] correct doc about custom validators
-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. |