I’m not sure how common this is, but wondering if its worth working on a PR for ActiveStorage to allow you to use callbacks. Something like this for example to run a method after analyze is complete:
I can work on the PR now – would like feedback whether it makes sense in the grand scheme of active storage. I noticed that the OP has after_analyze: but I’m not sure about that one since it would involve more work.
Update:
I misread the association callbacks documentation. Those callbacks only exist for the has_many variant. Nevermind! Maybe this would make more sense if the callbacks are consistent between has_one and has_many.