This repository was archived by the owner on Jul 24, 2023. It is now read-only.
Commit ffff8cf
Tobias Haagen Michaelsen
Be aware when using Hash or Array as default value for unknown Hash keys.
If you're using `Hash.new([])` or `Hash#default=` then it's the same object that is assigned to each unknown key, so you'll be adding to the same array when e.g. adding multiple AX attributes.1 parent 41d8323 commit ffff8cf
2 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
| 278 | + | |
280 | 279 | | |
281 | 280 | | |
282 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
0 commit comments