mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
revised list conventions in AM's validates_associated
This commit is contained in:
parent
c321830033
commit
2979b1a143
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ module ActiveModel
|
|||
#
|
||||
# Configuration options:
|
||||
# * <tt>:message</tt> - A custom error message (default is: "is invalid")
|
||||
# * <tt>:on</tt> Specifies when this validation is active (default is <tt>:save</tt>, other options <tt>:create</tt>, <tt>:update</tt>)
|
||||
# * <tt>:on</tt> - Specifies when this validation is active (default is <tt>:save</tt>, other options <tt>:create</tt>, <tt>:update</tt>)
|
||||
# * <tt>:if</tt> - Specifies a method, proc or string to call to determine if the validation should
|
||||
# occur (e.g. <tt>:if => :allow_validation</tt>, or <tt>:if => Proc.new { |user| user.signup_step > 2 }</tt>). The
|
||||
# method, proc or string should return or evaluate to a true or false value.
|
||||
|
|
Loading…
Reference in a new issue