aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-04-24 20:46:00 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-04-24 20:46:00 +0900
commitc7f12f152918acf03bbc9788d464981816e61966 (patch)
tree7124b91f5d6d78d1f586633cf7b1aaff85c0f7b0 /activemodel/lib
parent0dd40fe72cfcf53b475a4084d61e9e931417c29e (diff)
downloadrails-c7f12f152918acf03bbc9788d464981816e61966.tar.gz
rails-c7f12f152918acf03bbc9788d464981816e61966.tar.bz2
rails-c7f12f152918acf03bbc9788d464981816e61966.zip
Fix regexp in the doc [ci skip]
Follow up of #17148.
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/validations/numericality.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/numericality.rb b/activemodel/lib/active_model/validations/numericality.rb
index 995b331245..b82c85ddf4 100644
--- a/activemodel/lib/active_model/validations/numericality.rb
+++ b/activemodel/lib/active_model/validations/numericality.rb
@@ -104,7 +104,7 @@ module ActiveModel
module HelperMethods
# Validates whether the value of the specified attribute is numeric by
# trying to convert it to a float with Kernel.Float (if <tt>only_integer</tt>
- # is +false+) or applying it to the regular expression <tt>/\A[\+\-]?\d+\Z/</tt>
+ # is +false+) or applying it to the regular expression <tt>/\A[\+\-]?\d+\z/</tt>
# (if <tt>only_integer</tt> is set to +true+).
#
# class Person < ActiveRecord::Base