Skip to content
This repository
Browse code

Configuration options are symbols

  • Loading branch information...
commit 8e0affbd861369d84273a4f89917fda24157ead4 1 parent 14c254a
Paco Guzmán authored March 06, 2011
4  activemodel/lib/active_model/validations/with.rb
@@ -50,9 +50,9 @@ module ClassMethods
50 50
       #   end
51 51
       #
52 52
       # Configuration options:
53  
-      # * <tt>on</tt> - Specifies when this validation is active
  53
+      # * <tt>:on</tt> - Specifies when this validation is active
54 54
       #   (<tt>:create</tt> or <tt>:update</tt>
55  
-      # * <tt>if</tt> - Specifies a method, proc or string to call to determine
  55
+      # * <tt>:if</tt> - Specifies a method, proc or string to call to determine
56 56
       #   if the validation should occur (e.g. <tt>:if => :allow_validation</tt>,
57 57
       #   or <tt>:if => Proc.new { |user| user.signup_step > 2 }</tt>).
58 58
       #   The method, proc or string should return or evaluate to a true or false value.

0 notes on commit 8e0affb

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