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

updated detection of Mongoid major version #1

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

updated detection of Mongoid major version #1

wants to merge 1 commit into from

Conversation

phoffer
Copy link

@phoffer phoffer commented Jun 15, 2012

from regex to checking what constants are defined: Moped for 3.x, and Mongo for 2.x

@maximeg
Copy link
Owner

maximeg commented Jun 15, 2012

I thought about this way, but i saw that some folks wanted to be able to use Mongo (the official ruby driver from 10gen) with Mongoid 3.

I'll investigate this further later.

@phoffer
Copy link
Author

phoffer commented Jun 15, 2012

I don't believe it is possible to use Moped with 2.x, so you could possibly use !mongoid3 to for the 2.x check. I'm not completely sure about that though.

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