Method: Mongoid::Shell::Commands::Mongo#host_port_and_db
- Defined in:
- lib/mongoid/shell/commands/mongo.rb
#host_port_and_db ⇒ Object
24 25 26 |
# File 'lib/mongoid/shell/commands/mongo.rb', line 24 def host_port_and_db [primary, db].compact.join('/') end |