Changeset [0c58330f1ee3b27978fec1e3331c1b68417a738a] by Shane Hanna

August 3rd, 2009 @ 10:14 AM

[dm-validations] Avoid scientific notation in Float.to_s

  • This allows precision and scale regexps to work in case the float value is represented in scientific notation internally.

[#996 state:resolved] http://github.com/datamapper/dm-...

Committed by Shane Hanna

  • M dm-validations/lib/dm-validations/validators/numeric_validator.rb
  • M dm-validations/spec/integration/numeric_validator/float_type_spec.rb
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 »