Skip to content
This repository
Browse code

revised list conventions in AM's validates_associated

  • Loading branch information...
commit 2979b1a1432127f1c3cb4571b5dc2980737459bc 1 parent c321830
Xavier Noria fxn authored
2  activemodel/lib/active_model/validations/associated.rb
@@ -25,7 +25,7 @@ module ClassMethods
25 25 #
26 26 # Configuration options:
27 27 # * <tt>:message</tt> - A custom error message (default is: "is invalid")
28   - # * <tt>:on</tt> Specifies when this validation is active (default is <tt>:save</tt>, other options <tt>:create</tt>, <tt>:update</tt>)
  28 + # * <tt>:on</tt> - Specifies when this validation is active (default is <tt>:save</tt>, other options <tt>:create</tt>, <tt>:update</tt>)
29 29 # * <tt>:if</tt> - Specifies a method, proc or string to call to determine if the validation should
30 30 # occur (e.g. <tt>:if => :allow_validation</tt>, or <tt>:if => Proc.new { |user| user.signup_step > 2 }</tt>). The
31 31 # method, proc or string should return or evaluate to a true or false value.

0 comments on commit 2979b1a

Please sign in to comment.
Something went wrong with that request. Please try again.