superp/rails-uploader — pull request #4 by johnbintz (2012-10-24 14:54:50+00:00)
Title: Add support for Mongoid 3

Finally, a drop-in-and-go multi-file uploader for Rails. :) I use Mongoid 3 in my projects, and I added enough code and tests to get rails-uploader working with Mongoid 3. The procedure for use is pretty much the same, except with a preference towards composition rather than inheritance, which is how Mongoid handles adding functionality to document models. The only part that doesn't have tests is the JSON serialization of the document for use in the Rails frontend, since I kind of hacked that one together for use with Carrierwave. Let me know how you want to proceed on handling tests for that one (detect the uploader, push JSON serialization of asset documents elsewhere, etc) and I can hack on that, if you want.