Commit 233c261
committed
Fix spurious versions from touch events with no changes
Previously, `changed_notably?` in `Events::Update` returned `true` for
touch events even when `changes_in_latest_version` was empty. This
caused spurious version records to be created, particularly when using
ActiveStorage, which calls `touch` after attaching blobs.
By removing this override, we now delegate to the base class
implementation, which only creates versions when there are actual
notable changes tracked by Rails' dirty tracking.
Fixes #14651 parent 0c511ed commit 233c261
1 file changed
Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 48 | + | |
| 49 | + | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
0 commit comments