aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorPaco Guzman <fjguzman@aspgems.com>2011-03-06 22:35:26 +0100
committerPaco Guzman <fjguzman@aspgems.com>2011-03-06 22:35:26 +0100
commit8e0affbd861369d84273a4f89917fda24157ead4 (patch)
treeb20180caf600de3921a1497f0f658c7ff3d4c3bc /activemodel
parent14c254aba379693f4a6bd92e8d22819020bfcc9f (diff)
downloadrails-8e0affbd861369d84273a4f89917fda24157ead4.tar.gz
rails-8e0affbd861369d84273a4f89917fda24157ead4.tar.bz2
rails-8e0affbd861369d84273a4f89917fda24157ead4.zip
Configuration options are symbols
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/with.rb4
1 files changed, 2 insertions, 2 deletions
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:
- # * <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.