thoughtbot/paperclip — pull request #779 by kineticac (2012-03-12 07:19:58+00:00)
Title: Refreshing thumbnails on large datasets fails, this fixes it by iterating through them in batches

Uses find_each instead of find(:all) to select records in a large dataset in batches of 1000 to avoid timeouts.