search for: flush_delet

Displaying 2 results from an estimated 2 matches for "flush_delet".

Did you mean: flush_deletes
2010 Nov 01
2
paperclip Image Versioning
Hello. I''m hoping to hear your recommendations on using paperclip for images with versioning. Anyone know of any elegant paper_clip image, versioning implementation solutions? Thank you -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
...:to_file def flush_writes #:nodoc: @queued_for_write.each do |style, file| FileUtils.mkdir_p(File.dirname(path(style))) result = file.stream_to(path(style)) file.close result.close end @queued_for_write = {} end def flush_deletes #:nodoc: @queued_for_delete.each do |path| begin FileUtils.rm(path) if File.exist?(path) rescue Errno::ENOENT => e # ignore file-not-found, let everything else pass end end @queued_for_delete = [] end end...