Skip to content
Browse files

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.
  • Loading branch information...
1 parent 42a99db commit a94186f836044d5ddaf9b185e01a99dc1c2569f8 @sbagdat sbagdat committed Oct 14, 2013
Showing with 0 additions and 2 deletions.
  1. +0 −2 guides/source/
2 guides/source/
@@ -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

0 comments on commit a94186f

Please sign in to comment.
Something went wrong with that request. Please try again.