Skip to content

Instantly share code, notes, and snippets.

@jakimowicz
jakimowicz / mongo_mapper.rb
Last active December 26, 2015 21:39 — forked from bhbryant/retry.rb
auto-failover ReplicaSet config for MongoMapper, by way of ruby driver. without any change to the connection. You just need to require the files before initiating the connection.
require 'lib/mongo/retry'
require 'lib/mongo/repl_set_connection'