is there such thing as a ruby driver parameter pass through with MM

18 views
Skip to first unread message

ds2k

unread,
Jun 7, 2012, 2:12:47 PM6/7/12
to MongoMapper
Is there a way to pass an arbitrary connect parameter through to the
driver when using MM, if MM does not natively support it?

I want to force keepAlive on, and thats going to happen when either MM
supports it, or I can just pass it through :)

Justin Dossey

unread,
Jun 7, 2012, 3:57:36 PM6/7/12
to mongo...@googlegroups.com
The MongoMapper::connection is just an instance of the Mongo::Connection or Mongo::ReplSetConnection object, so you can pass any options the mongo-ruby driver supports at time of initialization.

Justin Dossey




--
You received this message because you are subscribed to the Google
Groups "MongoMapper" group.
For more options, visit this group at
http://groups.google.com/group/mongomapper?hl=en?hl=en

ds2k

unread,
Jun 7, 2012, 5:42:09 PM6/7/12
to MongoMapper
Thanks Justin, I will try it out.
Reply all
Reply to author
Forward
0 new messages