ashb/magic-paperclip — pull request #1 by robworley (2012-09-08 11:05:48+00:00)
Title: Support any attachment type

Thanks for developing this gem!

This patch fixes errors when URIs are assigned to paperclip attachments. It takes advantage of the fact that paperclip's IO adapters always provide a path to a tempfile, at least in recent versions of paperclip (v3.1+).

Other tweaks:

- Require test/unit before mocha to eliminate warnings.
- Use tap so I don't have to remember to explcitly return the value from assign_without_filemagic.