I have 2 models that I want CarrierWave to interact with. Item
and Image
models.
What I want to happen is once the user uploads their item to S3 via Carrierwave - that part is pretty straight forward - whenever another user wants to download the item, they press a button that triggers some method that dynamically generates a download link - that expires when 2 conditions are met. Either the item is downloaded X number of times, or X hours have passed (say 24 hours).
The idea being that there isn't a static download link floating around on the internet to that file.
How do I do that?