This project is archived and is in readonly mode.

#6556 ✓committed
Andriy Tyurnikov

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

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>

Pages