From 34ccb5cb581c720dbb268c6d8b3c0816ed98bab5 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Wed, 22 Feb 2012 13:47:10 -0500 Subject: [PATCH] minor: ReplSet doc example update --- docs/examples/replica_set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/replica_set.rb b/docs/examples/replica_set.rb index deb0273..2cad06e 100644 --- a/docs/examples/replica_set.rb +++ b/docs/examples/replica_set.rb @@ -4,7 +4,7 @@ require 'mongo' cons = [] 10.times do - cons << Mongo::Connection.multi([['localhost', 27017]], :read_secondary => true) + cons << Mongo::ReplSetConnection(['localhost:27017'], :read => :secondary) end ports = cons.map do |con|