Commit 7ce1685
committed
Add BigDecimal.new compatibility shim for Ruby 2.7 with Rails 4.2
- Rails 4.2 uses deprecated BigDecimal.new API
- Ruby 2.7 deprecated BigDecimal.new in favor of BigDecimal() kernel method
- Add compatibility shim to restore BigDecimal.new for Ruby 2.6-2.7
- Only activates for Ruby < 3.0 to avoid affecting modern Ruby versions1 parent bbc5e9a commit 7ce1685
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
8 | 18 | | |
9 | 19 | | |
10 | 20 | | |
| |||
0 commit comments