mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #19721 from vngrs/validates_presence_of_missing_note
Missing note on validates_presence_of validation [ci skip]
This commit is contained in:
commit
d21c688522
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ module ActiveRecord
|
|||
# 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.
|
||||
|
|
Loading…
Reference in a new issue