Skip to content

Instantly share code, notes, and snippets.

@joshmcarthur
Created June 26, 2012 03:32
Show Gist options
  • Save joshmcarthur/2993102 to your computer and use it in GitHub Desktop.
Save joshmcarthur/2993102 to your computer and use it in GitHub Desktop.
Reprocessing paperclip attachments
# Image is your ActiveRecord model
Image.find_each do |image|
# file is your
image.file.reprocess!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment