orm_adapter icon indicating copy to clipboard operation
orm_adapter copied to clipboard

Add #simple_key that is needed for Mongoid

Open hauleth opened this issue 11 years ago • 1 comments

Mongoid #to_key returns BSON::ObjectId which is serialized to {"$oid": "blahblah"}. This method will now return string which will not cause errors like plataformatec/devise#2882.

hauleth avatar Feb 24 '14 14:02 hauleth

I'm not familiar enough with the Devise/Mongoid combo that causes this issue. Is there a consensus on plataformatec/devise#2882 as to whether providing a simple_key method will fix this?

ianwhite avatar Aug 05 '14 14:08 ianwhite