diff options
author | Robert Eshleman <c.robert.eshleman@gmail.com> | 2015-12-22 13:29:54 -0500 |
---|---|---|
committer | Robert Eshleman <c.robert.eshleman@gmail.com> | 2015-12-22 14:27:25 -0500 |
commit | 9c330798b0a77762b72a833519e10b01738cf79c (patch) | |
tree | 1af00c4ab5ef8c9ee7d1cda4b5170d446c5eb45c /activesupport/test/deprecation | |
parent | b96fdd234de9484b6c0999d04193de31d925dc3a (diff) | |
download | rails-9c330798b0a77762b72a833519e10b01738cf79c.tar.gz rails-9c330798b0a77762b72a833519e10b01738cf79c.tar.bz2 rails-9c330798b0a77762b72a833519e10b01738cf79c.zip |
Fix Regression in Numericality Validations
A regression (#22744) introduced in 7500dae caused certain numericality
validations to raise an error when run against an attribute with a
string value. Previously, these validations would successfully run
against string values because the value was cast to a numeric class.
This commit resolves the regression by converting string values to
floats before performing numericality comparison validations.
[fixes #22744]
Diffstat (limited to 'activesupport/test/deprecation')
0 files changed, 0 insertions, 0 deletions