Permalink
Browse files

Configuration options are symbols

  • Loading branch information...
1 parent 14c254a commit 8e0affbd861369d84273a4f89917fda24157ead4 Paco Guzman committed Mar 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/validations/with.rb
@@ -50,9 +50,9 @@ module ClassMethods
# 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.

0 comments on commit 8e0affb

Please sign in to comment.