Shrine

Attaching the same S3 uploaded photo to many records?

Hello! Is this possible? I’ve gone through the docs, but don’t see anything that jumps out at me.

I’m trying to create a demo object in each new user’s account, and this demo object will have the same demo photo attached to it.

I can use the “.image=” method to upload the photo to each user’s demo object when I create the user’s account, like so…

demo_object.image = File.open((Rails.root.join 'app', 'assets', 'images', 'my_photo.jpg'), 'rb')

…but if there’s a way to have each user’s demo object point to the same photo on s3 (perhaps attached to an admin’s object), I would choose that route…

Any guidance appreciated, thanks!