提交 57fb74e0 编写于 作者: R Robert Eshleman

Convert non-`Numeric` values to Floats

上级 9c330798
......@@ -39,7 +39,7 @@ def validate_each(record, attr_name, value)
return
end
if raw_value.is_a?(String)
unless raw_value.is_a?(Numeric)
value = parse_raw_value_as_a_number(raw_value)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册