diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2017-08-17 10:56:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 10:56:46 -0400 |
commit | d1c03d3f9e49439ad68fe7fc6daf8582f27578cd (patch) | |
tree | 77daf19fb5a766e877050f0de952843c1db6307c | |
parent | f84019cd6338576986b71a419602bfd6bc546f2d (diff) | |
parent | 8779e33a4bd87f2778ca74ab168cbf5b9f5032d0 (diff) | |
download | rails-d1c03d3f9e49439ad68fe7fc6daf8582f27578cd.tar.gz rails-d1c03d3f9e49439ad68fe7fc6daf8582f27578cd.tar.bz2 rails-d1c03d3f9e49439ad68fe7fc6daf8582f27578cd.zip |
Merge pull request #30295 from ohbarye/follow_up_to_28058
Remove obsolete explanation about passing string to `:if` and `:unless` [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. |