Module: Mongoid::MultiDatabase::ClassMethods

Defined in:
lib/mongoid/multi_database.rb

Instance Method Summary collapse

Instance Method Details

#databaseObject



6
# File 'lib/mongoid/multi_database.rb', line 6

def database; @database end

#set_database(name) ⇒ Object



7
8
9
# File 'lib/mongoid/multi_database.rb', line 7

def set_database(name)
  @database = name.to_s
end