1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #12536 from sbagdat/patch-1

Remove size alias for length validation
This commit is contained in:
Rafael Mendonça França 2013-10-14 13:50:32 -07:00
commit 028b4d7d7e

View file

@ -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