Method: MongoModel::Configuration#use_database

Defined in:
lib/mongomodel/support/configuration.rb

#use_database(database) ⇒ Object



50
51
52
53
# File 'lib/mongomodel/support/configuration.rb', line 50

def use_database(database)
  options['database'] = database
  establish_connection
end