module Technoweenie # :nodoc: module AttachmentFu # :nodoc: module InstanceMethods attr_writer :skip_thumbnail_processing # Added by WBH from http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/e55260596398bdb6/4f75166df026672b?lnk=gst&q=attachment_fu+copy&rnum=3#4f75166df026672b # This is intended to let us make copies of attachment_fu objects # Note: This makes copies of the main image AND each of its prescribed thumbnails def create_clone c = self.clone self.thumbnails.each { |t| n = t.clone img = t.create_temp_file n.temp_path = img #img.path -- Commented so that img wo'nt get garbage collected before c is saved, see the thread, above. n.save_to_storage c.thumbnails<