提交 d1c03d3f 编写于 作者: J Jon Moss 提交者: GitHub

Merge pull request #30295 from ohbarye/follow_up_to_28058

Remove obsolete explanation about passing string to `:if` and `:unless` [ci skip]
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册