Module: QME::DatabaseAccess
- Included in:
- MapReduce::Executor
- Defined in:
- lib/qme/database_access.rb
Instance Method Summary collapse
-
#get_db ⇒ Moped::Session
Lazily creates a connection to the database and initializes the JavaScript environment.
Instance Method Details
#get_db ⇒ Moped::Session
Lazily creates a connection to the database and initializes the JavaScript environment
6 7 8 |
# File 'lib/qme/database_access.rb', line 6 def get_db Mongoid.default_client end |