diff options
author | ohbarye <over.rye@gmail.com> | 2017-08-17 23:49:49 +0900 |
---|---|---|
committer | ohbarye <over.rye@gmail.com> | 2017-08-17 23:49:49 +0900 |
commit | 8779e33a4bd87f2778ca74ab168cbf5b9f5032d0 (patch) | |
tree | 5fdf67b7f5a5978a1d35a93c4844642116db5f09 | |
parent | 251d3f9151322f95c1a339f26a9660a79212859f (diff) | |
download | rails-8779e33a4bd87f2778ca74ab168cbf5b9f5032d0.tar.gz rails-8779e33a4bd87f2778ca74ab168cbf5b9f5032d0.tar.bz2 rails-8779e33a4bd87f2778ca74ab168cbf5b9f5032d0.zip |
Remove obsolete explanation
about passing string to `:if` and `:unless`.
This is a follow up to https://github.com/rails/rails/pull/28058 [ci
skip]
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index a086363cf1..e9157f3db1 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -892,7 +892,7 @@ Conditional Validation Sometimes it will make sense to validate an object only when a given predicate is satisfied. You can do that by using the `:if` and `:unless` options, which -can take a symbol, a string, a `Proc` or an `Array`. You may use the `:if` +can take a symbol, a `Proc` or an `Array`. You may use the `:if` option when you want to specify when the validation **should** happen. If you want to specify when the validation **should not** happen, then you may use the `:unless` option. |