I want to run some methods after the file download has completed through Carrierwave. Carrierwave includes several callback methods here .
I plan to use the callback: store.
This is great, but I need to run the callback method on an instance of the Uploader object. This is not the end of the world, but I want to keep all the logic inside my parent model.
My question is: how should I refer to the parent model from Uploader? I do not see anything obvious in the documentation?
I suppose I could do something like
ParentModel.last.call_my_method_here
but it seems like a very fragile way to code it (not expecting a lot of requests, but still).
source share