Commit 826fc55
Oj expects indent as a Fixnum.
When using multi_json with Oj, and also the json lib happens to be laoded, there's a case the json lib sets indent as a String (see https://github.com/ruby/ruby/blob/v2_1_0/ext/json/lib/json/common.rb), making Oj crash with ArgumentError: :indent must be a Fixnum.1 parent 3b62e64 commit 826fc55
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
10 | 22 | | |
0 commit comments