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:
parent
9c330798b0
commit
57fb74e081
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue