1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Convert non-Numeric values to Floats

This commit is contained in:
Robert Eshleman 2015-12-22 16:01:50 -05:00
parent 9c330798b0
commit 57fb74e081

View file

@ -39,7 +39,7 @@ module ActiveModel
return
end
if raw_value.is_a?(String)
unless raw_value.is_a?(Numeric)
value = parse_raw_value_as_a_number(raw_value)
end