fix BigDecimal to_s monkey-patch (complements 0052d4af1a4cc397c4248a7049a52e35ce33cec1)

This commit is contained in:
wvengen 2013-12-14 00:46:13 +01:00
parent be76f29473
commit 9b27ce29e9

View file

@ -10,8 +10,8 @@ end
if defined? BigDecimal
class BigDecimal
alias :foodsoft_to_s :to_s
def to_s
foodsoft_to_s.chomp(".0")
def to_s(format = DEFAULT_STRING_FORMAT)
foodsoft_to_s(format).chomp(".0")
end
end
end