We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a96dea commit fe41a9fCopy full SHA for fe41a9f
1 file changed
activesupport/lib/active_support/xml_mini.rb
@@ -74,6 +74,8 @@ def content_type
74
"decimal" => Proc.new do |number|
75
if String === number
76
number.to_d
77
+ elsif Float === number
78
+ BigDecimal(number, 0)
79
else
80
BigDecimal(number)
81
end
0 commit comments