Post processing

I am converting a class from Paperclip to Shrine and I’m having some trouble with some post processing actions.

The class currently has an after_commit my_action on: :create callback that it seems is being called before the after_commit that persists the attachment from cache to storage.

Do I need to call the method from the context in the uploader?

To expand a bit, I have 2 call back for after_commit, one on create and one on update. If I follow the advice in the docs and put them above the include, then only the update gets called. If they’re under, then the create gets called, but the files aren’t in store.

I’m going through the docs trying to find out how to call an action after attachment is done, but any guidance would be appreciated.