Commit 1dfe6da
committed
Fix deprecated MenuItem arguments
Spree::BackendConfiguration::MenuItem no longer accepts the positional
`sections` and `icon` arguments; `sections` is replaced by a `label:` keyword
and `icon` must be passed as a keyword. Pass `label: :reports` and
`icon: "file"` instead, which removes two deprecation warnings on boot.
The REPORT_TABS constant was only used to supply the (now removed) positional
sections argument, so inline `:reports` and drop the constant.1 parent 3d4d2db commit 1dfe6da
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 20 | | |
27 | | - | |
28 | | - | |
| 21 | + | |
| 22 | + | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
| |||
0 commit comments