aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSteve Agalloco <steve.agalloco@gmail.com>2014-04-04 11:19:39 -0400
committerSteve Agalloco <steve.agalloco@gmail.com>2014-04-04 11:54:05 -0400
commite412ccbb563ea4abec6b4034094605e1565f56cc (patch)
tree48f760528261b4947dda50c2b2949d315ddbac3f /activemodel
parentb9774a594339d5ac92503d91d180d88ec1faf436 (diff)
downloadrails-e412ccbb563ea4abec6b4034094605e1565f56cc.tar.gz
rails-e412ccbb563ea4abec6b4034094605e1565f56cc.tar.bz2
rails-e412ccbb563ea4abec6b4034094605e1565f56cc.zip
add missing parentheses to validates_with documentation [skip ci]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/with.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/with.rb b/activemodel/lib/active_model/validations/with.rb
index 7022f9bee5..ff41572105 100644
--- a/activemodel/lib/active_model/validations/with.rb
+++ b/activemodel/lib/active_model/validations/with.rb
@@ -53,7 +53,7 @@ module ActiveModel
#
# Configuration options:
# * <tt>:on</tt> - Specifies when this validation is active
- # (<tt>:create</tt> or <tt>:update</tt>.
+ # (<tt>:create</tt> or <tt>:update</tt>).
# * <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>).