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

Version Path
cd2_catton_cms-1.1.35 spec/dummy/lib/tasks/reprocess_images.rake
cd2_catton_cms-1.1.34 spec/dummy/lib/tasks/reprocess_images.rake
cd2_catton_cms-1.1.33 spec/dummy/lib/tasks/reprocess_images.rake
cd2_catton_cms-1.1.32 spec/dummy/lib/tasks/reprocess_images.rake
cd2_catton_cms-1.1.31 spec/dummy/lib/tasks/reprocess_images.rake
cd2_catton_cms-1.1.30 spec/dummy/lib/tasks/reprocess_images.rake
cd2_catton_cms-1.1.20 spec/dummy/lib/tasks/reprocess_images.rake
cd2_catton_cms-1.1.10 spec/dummy/lib/tasks/reprocess_images.rake