From 8e0affbd861369d84273a4f89917fda24157ead4 Mon Sep 17 00:00:00 2001 From: Paco Guzman Date: Sun, 6 Mar 2011 22:35:26 +0100 Subject: Configuration options are symbols --- activemodel/lib/active_model/validations/with.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activemodel') diff --git a/activemodel/lib/active_model/validations/with.rb b/activemodel/lib/active_model/validations/with.rb index 1663697727..65ae18a769 100644 --- a/activemodel/lib/active_model/validations/with.rb +++ b/activemodel/lib/active_model/validations/with.rb @@ -50,9 +50,9 @@ module ActiveModel # end # # Configuration options: - # * on - Specifies when this validation is active + # * :on - Specifies when this validation is active # (:create or :update - # * if - Specifies a method, proc or string to call to determine + # * :if - Specifies a method, proc or string to call to determine # if the validation should occur (e.g. :if => :allow_validation, # or :if => Proc.new { |user| user.signup_step > 2 }). # The method, proc or string should return or evaluate to a true or false value. -- cgit v1.2.3