This project is archived and is in readonly mode.
length validation for integer (fixnum) fields
Reported by Andriy Tyurnikov | March 10th, 2011 @ 05:58 PM | in 3.0.6
So far length validation using value.size for comparsion, which fails for integers/fixnums (10.size = 8, ruby 1.9.2, if it is important)
Usage of value.to_s.size is proposed.
Comments and changes to this ticket
-
Andriy Tyurnikov March 12th, 2011 @ 01:45 AM
- Assigned user set to Santiago Pastorino
-
Santiago Pastorino March 12th, 2011 @ 03:33 AM
- Importance changed from to Low
Can you provide a test case and a patch?
-
Santiago Pastorino March 12th, 2011 @ 11:12 PM
- State changed from new to committed
- Milestone set to 3.1
-
Santiago Pastorino March 12th, 2011 @ 11:17 PM
- Milestone changed from 3.1 to 3.0.6
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>