mirror of https://github.com/rails/rails
Fix typo: integer numbers (not integral)
This commit is contained in:
parent
4bbdad500c
commit
4862c2faf6
|
@ -161,7 +161,7 @@ module ActiveModel
|
|||
# Configuration options:
|
||||
# * <tt>:message</tt> - A custom error message (default is: "is not a number").
|
||||
# * <tt>:only_integer</tt> - Specifies whether the value has to be an
|
||||
# integer, e.g. an integral value (default is +false+).
|
||||
# integer (default is +false+).
|
||||
# * <tt>:allow_nil</tt> - Skip validation if attribute is +nil+ (default is
|
||||
# +false+). Notice that for Integer and Float columns empty strings are
|
||||
# converted to +nil+.
|
||||
|
|
|
@ -518,10 +518,10 @@ custom message or call `presence` prior to `length`.
|
|||
### `numericality`
|
||||
|
||||
This helper validates that your attributes have only numeric values. By
|
||||
default, it will match an optional sign followed by an integral or floating
|
||||
default, it will match an optional sign followed by an integer or floating
|
||||
point number.
|
||||
|
||||
To specify that only integral numbers are allowed,
|
||||
To specify that only integer numbers are allowed,
|
||||
set `:only_integer` to true. Then it will use the
|
||||
|
||||
```ruby
|
||||
|
|
Loading…
Reference in New Issue