mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #34612 from utilum/bigdecimal_raises_on_comma_in_string_argument
Another Ruby 2.6 BigDecimal compatibility issue
This commit is contained in:
commit
1decfedb2b
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ module ActiveSupport
|
|||
begin
|
||||
BigDecimal(number)
|
||||
rescue ArgumentError
|
||||
BigDecimal("0")
|
||||
BigDecimal(number.to_f.to_s)
|
||||
end
|
||||
else
|
||||
BigDecimal(number)
|
||||
|
|
Loading…
Reference in a new issue