Method: Mongo::Connection#remove_auth
- Defined in:
- lib/jmongo/connection.rb
#remove_auth(db_name) ⇒ Boolean
Remove a saved authentication for this connection.
117 118 119 120 121 122 123 124 |
# File 'lib/jmongo/connection.rb', line 117 def remove_auth(db_name) return unless @auths if @auths.reject! { |a| a['db_name'] == db_name } true else false end end |