#78 ✓resolved
yerejm

[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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Tags

Pages