Module: Mongoid::MultiDatabase::ClassMethods
- Defined in:
- lib/mongoid/multi_database.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#database ⇒ Mongo::DB
Gets the database from the class.
-
#set_database(name) ⇒ String
Set the database name.
Instance Method Details
#database ⇒ Mongo::DB
Gets the database from the class.
16 |
# File 'lib/mongoid/multi_database.rb', line 16 def database; @database end |
#set_database(name) ⇒ String
Set the database name.
26 27 28 |
# File 'lib/mongoid/multi_database.rb', line 26 def set_database(name) @database = name.to_s end |