Using 10gen's driver and Mongoid 3

154 views
Skip to first unread message

Jon

unread,
Jun 9, 2012, 10:01:41 PM6/9/12
to Mongoid
Durran, you mentioned back in February that there would be no
namespace collisions if we wanted to use 10gen's driver alongside
Mongoid 3. However, in mongoid.rb, you do:

BSON = Moped::BSON

This causes conflicts with the 10gen driver (notably, the call to
BSON::ByteBuffer.new([0, 0, 0, 0]) in Mongo::Cursor tries to resolve
Moped::BSON::ByteBuffer).

Is there going to be a way to use both in the official release? I've
converted all of my project except I still need to use 10gen's group
command for a dozen or so queries.

Jon

Durran Jordan

unread,
Jun 10, 2012, 5:53:39 AM6/10/12
to mon...@googlegroups.com
Yeah I'll change that not to do that line if the 10gen driver is detected.

2012/6/10 Jon <hyma...@gmail.com>

Jon

unread,
Jun 10, 2012, 10:40:52 AM6/10/12
to Mongoid
Great, thanks a lot!

On Jun 10, 5:53 am, Durran Jordan <dur...@gmail.com> wrote:
> Yeah I'll change that not to do that line if the 10gen driver is detected.
>
> 2012/6/10 Jon <hyman....@gmail.com>
Reply all
Reply to author
Forward
0 new messages