Skip to content

Commit

Permalink
minor: :name is a valid ReplSetConnection option
Browse files Browse the repository at this point in the history
  • Loading branch information
banker committed Feb 28, 2012
1 parent 7f0c9fa commit 311623d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/mongo/repl_set_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module Mongo
# Instantiates and manages connections to a MongoDB replica set.
class ReplSetConnection < Connection

REPL_SET_OPTS = [:read, :refresh_mode, :refresh_interval, :require_primary, :read_secondary, :rs_name]
REPL_SET_OPTS = [:read, :refresh_mode, :refresh_interval, :require_primary,
:read_secondary, :rs_name, :name]

attr_reader :replica_set_name, :seeds, :refresh_interval, :refresh_mode,
:refresh_version
Expand All @@ -35,7 +36,7 @@ class ReplSetConnection < Connection
#
# @param [Array] seeds "host:port" strings
#
# @option opts [String] :rs_name (nil) The name of the replica set to connect to. You
# @option opts [String] :name (nil) The name of the replica set to connect to. You
# can use this option to verify that you're connecting to the right replica set.
# @option opts [Boolean, Hash] :safe (false) Set the default safe-mode options
# propogated to DB objects instantiated off of this Connection. This
Expand Down

0 comments on commit 311623d

Please sign in to comment.