提交 d21c6885 编写于 作者: R Robin Dupret

Merge pull request #19721 from vngrs/validates_presence_of_missing_note

Missing note on validates_presence_of validation [ci skip]
......@@ -43,6 +43,10 @@ module ClassMethods
# deletes the associated object, thus putting the parent object into an invalid
# state.
#
# NOTE: This validation will not fail while using it with an association
# if the latter was assigned but not valid. If you want to ensure that
# it is both present and valid, you also need to use +validates_associated+.
#
# Configuration options:
# * <tt>:message</tt> - A custom error message (default is: "can't be blank").
# * <tt>:on</tt> - Specifies the contexts where this validation is active.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册