vendor/bundle/ruby/1.9.1/gems/paperclip-3.5.4/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.
# NOTE: Calling reprocess WILL NOT delete existing files. This is due to
# inconsistencies in timing of S3 commands. It's possible that calling
# #reprocess! will lose data if the files are not kept.
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.
NOTE: Calling reprocess WILL NOT delete existing files. This is due to
inconsistencies in timing of S3 commands. It's possible that calling
reprocess. will lose data if the files are not kept.
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 . NOTE : Calling reprocess WILL NOT delete existing files . This is due to inconsistencies in timing of S3 commands . It ' s possible that calling reprocess . will lose data if the files are not kept .
def reprocess!(*style_args)
      saved_only_process, @options[:only_process] = @options[:only_process], style_args
      saved_preserve_files, @options[:preserve_files] = @options[:preserve_files], true
      begin
        assign(self)
        save
        instance.save
      rescue Errno::EACCES => e
        warn "#{e} - skipping file."
        false
      ensure
        @options[:only_process] = saved_only_process
        @options[:preserve_files] = saved_preserve_files
      end
    end
def reprocess! ( * style_args ) saved_only_process , @options [ :only_process ] = @options [ :only_process ] , style_args saved_preserve_files , @options [ :preserve_files ] = @options [ :preserve_files ] , true begin assign ( self ) save instance . save rescue Errno :: EACCES => e warn "#{e} - skipping file." false ensure @options [ :only_process ] = saved_only_process @options [ :preserve_files ] = saved_preserve_files end end
This method really shouldn't be called that often.
This method really shouldn ' t be called that often .
style_args
<not_specific>