Commit d629a83
Refine config method in ViewComponent::Base (#2278)
* Let's be a bit gentler with trying the module parents on config.
Also, avoid naming variables inside after the method name itself.
Refactor config method in ViewComponent to improve readability and safety. Use explicit checks for module parent configuration instead of chaining try methods.
* fix allocations
* more allocations
---------
Co-authored-by: Joel Hawksley <[email protected]>
Co-authored-by: Joel Hawksley <[email protected]>1 parent 1b3052f commit d629a83
File tree
2 files changed
+7
-6
lines changed- lib/view_component
- test/sandbox/test
2 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments