1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Configuration options are symbols

This commit is contained in:
Paco Guzman 2011-03-06 22:35:26 +01:00
parent 14c254aba3
commit 8e0affbd86

View file

@ -50,9 +50,9 @@ module ActiveModel
# end
#
# Configuration options:
# * <tt>on</tt> - Specifies when this validation is active
# * <tt>:on</tt> - Specifies when this validation is active
# (<tt>:create</tt> or <tt>:update</tt>
# * <tt>if</tt> - Specifies a method, proc or string to call to determine
# * <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.