aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authorप्रथमेश Sonpatki <csonpatki@gmail.com>2016-03-28 16:31:41 +0530
committerप्रथमेश Sonpatki <csonpatki@gmail.com>2016-03-28 16:31:41 +0530
commit475109c517e724c015ee13061416568a7d6b9757 (patch)
tree154e0ba25147b24a13b3f24b3c642a819fae6051 /guides/source/active_record_validations.md
parent59bf226890dcd91511ea5b90a87d3ad92f54d8b3 (diff)
parentee640a1f75ce2db21443689ea4159eb5fb0be62d (diff)
downloadrails-475109c517e724c015ee13061416568a7d6b9757.tar.gz
rails-475109c517e724c015ee13061416568a7d6b9757.tar.bz2
rails-475109c517e724c015ee13061416568a7d6b9757.zip
Merge pull request #24343 from arekf/master
Update `numericality` validation docs
Diffstat (limited to 'guides/source/active_record_validations.md')
-rw-r--r--guides/source/active_record_validations.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index bcfdb935b2..baaebd21c8 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -505,6 +505,8 @@ constraints to acceptable values:
* `:less_than_or_equal_to` - Specifies the value must be less than or equal to
the supplied value. The default error message for this option is _"must be
less than or equal to %{count}"_.
+* `:other_than` - Specifies the value must be other than the supplied value.
+ The default error message for this option is _"must be other than %{count}"_.
* `:odd` - Specifies the value must be an odd number if set to true. The
default error message for this option is _"must be odd"_.
* `:even` - Specifies the value must be an even number if set to true. The