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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.