aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-01-22 22:56:41 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-01-22 22:56:41 +0900
commitfce9c4e5e1ecb31cff2ca43a04fbe332816c3c45 (patch)
tree37c641515344b85d06c002fe0e30fc791567ca75 /guides/source/active_record_validations.md
parent9d519eefbc59d7784d83a7497224d2903c7b76d3 (diff)
downloadrails-fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45.tar.gz
rails-fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45.tar.bz2
rails-fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45.zip
fix regexp for validate an integer in guides [ci skip]
Diffstat (limited to 'guides/source/active_record_validations.md')
-rw-r--r--guides/source/active_record_validations.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index 84925072f2..67cc6a4db3 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -470,7 +470,7 @@ point number. To specify that only integral numbers are allowed set
If you set `:only_integer` to `true`, then it will use the
```ruby
-/\A[+-]?\d+\Z/
+/\A[+-]?\d+\z/
```
regular expression to validate the attribute's value. Otherwise, it will try to