lib/paperclip/attachment.rb
# This method really shouldn't be called that often. It's expected use is in the
# paperclip:refresh rake task and that's it. It will regenerate all thumbnails
# forcefully, by reobtaining the original file and going through the post-process
# again.
This method really shouldn't be called that often. It's expected use is in the
paperclip:refresh rake task and that's it. It will regenerate all thumbnails
forcefully, by reobtaining the original file and going through the post-process
again.
This method really shouldn ' t be called that often . It ' s expected use is in the paperclip : refresh rake task and that ' s it . It will regenerate all thumbnails forcefully by reobtaining the original file and going through the post - process again .
def reprocess!
      new_original = Tempfile.new("paperclip-reprocess")
      if old_original = to_file(:original)
        new_original.write( old_original.read )
        new_original.rewind
        @queued_for_write = { :original => new_original }
        post_process
        old_original.close if old_original.respond_to?(:close)
        save
      else
        true
      end
    end
def reprocess! new_original = Tempfile . new ( "paperclip-reprocess" ) if old_original = to_file ( :original ) new_original . write ( old_original . read ) new_original . rewind @queued_for_write = { :original => new_original } post_process old_original . close if old_original . respond_to? ( :close ) save else true end end
This method really shouldn't be called that often.
This method really shouldn ' t be called that often .