
[PATCH] validates_length_of doesn't validate against existing data
Reported by yerejm | November 27th, 2007 @ 06:31 PM
In LengthValidator#call, the field value extracted is "" despite the field having a value as reported with inspect. Validation fails as a result. Perhaps the field is too lazy? The attached patch+spec (against r519) changes the field value extraction to really retrieve the existing data so validation will pass.
Comments and changes to this ticket
-
yerejm November 27th, 2007 @ 07:42 PM
- no changes were found...
-
-
Sam Smoot December 10th, 2007 @ 11:02 PM
- State changed from new to resolved
This should be resolved with the merging in of Validatable. You've been pretty busy though what with the patching and ticking... :-) Feel free to get in touch about commit access.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »