Sha256: 3bba835de2be892530fed2e6fe6ba462595a547e202971e261ec2d8a25babbe6
Contents?: true
Size: 370 Bytes
Versions: 8
Compression:
Stored size: 370 Bytes
Contents
task reprocess_images: :environment do C::Product::Image.find_each do |product_img| begin product_img.image.cache_stored_file! product_img.image.retrieve_from_cache!(product_img.image.cache_name) product_img.image.recreate_versions! product_img.save! rescue => e puts "ERROR: YourModel: #{product_img.id} -> #{e.to_s}" end end end
Version data entries
8 entries across 8 versions & 1 rubygems