Module: Rmodel::Mongo::Setup
- Included in:
- Setup
- Defined in:
- lib/rmodel/mongo/setup.rb
Instance Method Summary collapse
Instance Method Details
#establish_mongo_client(name) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/rmodel/mongo/setup.rb', line 3 def establish_mongo_client(name) config = @clients_config[name] if config = config.dup .delete :hosts establish_client(name) { Mongo::Client.new(config[:hosts], ) } end end |