Skip to content

Instantly share code, notes, and snippets.

@itamar
Created June 11, 2013 10:37
Show Gist options
  • Select an option

  • Save itamar/5755943 to your computer and use it in GitHub Desktop.

Select an option

Save itamar/5755943 to your computer and use it in GitHub Desktop.
Fix "Too many open files" error - Rails / paperclip / Too many open files - identify -format ..
def download_remote_image
if io = do_download_remote_image
self.image = io
self.image_remote_url = image_url
io.close # Already copied to a Tempfile.
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment