diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-01-22 22:56:41 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-01-22 22:56:41 +0900 |
commit | fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45 (patch) | |
tree | 37c641515344b85d06c002fe0e30fc791567ca75 /guides | |
parent | 9d519eefbc59d7784d83a7497224d2903c7b76d3 (diff) | |
download | rails-fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45.tar.gz rails-fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45.tar.bz2 rails-fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45.zip |
fix regexp for validate an integer in guides [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
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 |