mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove size alias for length validation
Removed ```The `size` helper is an alias for `length`.``` line. If you use this "nonexist" helper, you will get an error message like this: ``` ArgumentError: Unknown validator: 'SizeValidator' ... ``` Maybe wanted to mean ```validates_size_of``` helper as an alias for ```validates_length_of``` helper.
This commit is contained in:
parent
42a99dbaba
commit
a94186f836
1 changed files with 0 additions and 2 deletions
|
@ -438,8 +438,6 @@ provide a personalized message or use `presence: true` instead. When
|
|||
`:in` or `:within` have a lower limit of 1, you should either provide a
|
||||
personalized message or call `presence` prior to `length`.
|
||||
|
||||
The `size` helper is an alias for `length`.
|
||||
|
||||
### `numericality`
|
||||
|
||||
This helper validates that your attributes have only numeric values. By
|
||||
|
|
Loading…
Reference in a new issue