We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac26fd commit 283d96eCopy full SHA for 283d96e
activesupport/lib/active_support/xml_mini.rb
@@ -73,6 +73,8 @@ def content_type
73
"decimal" => Proc.new do |number|
74
if String === number
75
number.to_d
76
+ elsif Float === number
77
+ BigDecimal(number, 0)
78
else
79
BigDecimal(number)
80
end
0 commit comments