minad/mimemagic — pull request #7 by iangreenleaf (2012-09-19 00:04:22+00:00)
Title: Handle several types of file objects

If the object given to `by_magic` doesn't support `seek`, it will first
attempt to `read` the object, and failing that fall back to `to_s`. This
supports `ActionDispatch::Http::UploadedFile` objects.