Commit 511a42d
committed
fix: respect an explicit false for notify_on_metadata_change
The after_initialize default unconditionally reset the flag to true on
new records, so an explicitly provided false (e.g. an unchecked form
checkbox) could never survive initialization. Only apply the default
when the attribute is nil, and add a regression test.
Addresses Copilot review on PR #72.1 parent d1133c6 commit 511a42d
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
0 commit comments