Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #simple_key that is needed for Mongoid #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add #simple_key that is needed for Mongoid #34

wants to merge 1 commit into from

Conversation

hauleth
Copy link

@hauleth hauleth commented Feb 24, 2014

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

@ianwhite
Copy link
Owner

ianwhite commented Aug 5, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants