fix BigDecimal to_s monkey-patch (complements 0052d4af1a4cc397c4248a7049a52e35ce33cec1)
This commit is contained in:
parent
be76f29473
commit
9b27ce29e9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue