lib/moped/session.rb in moped-2.0.0.beta5 vs lib/moped/session.rb in moped-2.0.0.beta6
- old
+ new
@@ -238,9 +238,14 @@
# Pass an object that responds to instrument as an instrumenter.
#
# @since 2.0.0
option(:instrumenter).allow(Optionable.any(Object))
+ # Setup validation of allowed auto_discover preference options.
+ #
+ # @since 1.5.0
+ option(:auto_discover).allow(true, false)
+
# Initialize a new database session.
#
# @example Initialize a new session.
# Session.new([ "localhost:27017" ])
#