Using Shrine with ActiveRecord using background plugin for promotion.
I’m currently using the same attacher for two activerecord models (an Attachment uploader, both models have attachments) and i’m right now in a problem as i need to upload some files with public acl.
I know i don’t have access on the upload_options and url_options plugin to the attacher/record, and although maybe is not the best design, i understand i can pass the record to the “context” of those plugins, so for example to check the record class to know if that file should be upload as public or private.
The thing is i don’t get how i should pass the records as part of the context, being almost every upload/promotion is done automatically by the activerecord integration.
Is maybe on the background plugin on the atomic_promote call?
Hope my problem is understood, thanks as always!