mhfs/devise-async — pull request #2 by Pranas (2012-05-28 07:56:14+00:00)
Title: Support for Mongoid

When calling ``id`` on Mongoid document it returns ``BSON::ObjectId`` object. When this object is used as argument for resque job it is serialized to ``{"$oid"=> "4fc09874af84033b3800016c"}``. Later on this hash is passed to ``find`` which fails.

You should use ``to_param`` method which returns string representation of id. This change should work with different ORMs -- it's part of ActiveModel.