search for: sold_changed

Displaying 1 result from an estimated 1 matches for "sold_changed".

Did you mean: sel_changed
2009 Jan 24
0
reprocess attachment_fu thumbnails with ImageMagick edits
...dify product images when a user marks a product as "sold" and I am able to modify the original image file successfully, but when I try to reprocess the thumbnails, my ImageMagick modifications don''t stick. Here is what I''ve got going so far: def before_save if self.sold_changed? && self.sold? for photo in self.photos imagelist = Magick::ImageList.new imagelist.read(File.join(RAILS_ROOT, "public", photo.public_filename), File.join(RAILS_ROOT, "assets", "sold.png")) imagelist.flatten_images.write(photo_file...