You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all thanks a lot for the great Shrine, I really like it.
I tried to follow the guide on Reprocessing Versions. It doesn't work because Shrine::Plugins::Activerecord::AttacherMethods.swap must not be private. This is in my Rake task:
In the meanwhile, you can use attacher.send(:swap, ...). Also, I don't know how many Photo records you have, but it's generally better to use Photo.find_each, otherwise all Photo records are loaded in memory.
At the moment I'm playing around with just a couple of files. So Photo.all.each work fine for now. But I'm aware that find_each is a better way to deal with thousands of records.
Hi Janko,
first of all thanks a lot for the great Shrine, I really like it.
I tried to follow the guide on Reprocessing Versions. It doesn't work because
Shrine::Plugins::Activerecord::AttacherMethods.swap
must not be private. This is in my Rake task:Sorry I can't provide a pull request right now.
Cheers
Kai
The text was updated successfully, but these errors were encountered: