This repository was archived by the owner on Jul 25, 2025. It is now read-only.
Commit afa8e16
Fix: Article author update in Avo admin
- Add custom update_model_record method to handle author changes
- Properly manage polymorphic authorship association
- Destroy existing authorship before creating new one
- Handle removal of author (blank selection)
This ensures author changes are properly saved when editing articles in Avo.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4204905 commit afa8e16
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
26 | 45 | | |
0 commit comments