Class: Volt::DataStore
- Defined in:
- lib/volt/data_stores/data_store.rb,
lib/volt/data_stores/mongo_driver.rb
Defined Under Namespace
Classes: MongoDriver
Class Method Summary collapse
Class Method Details
.fetch ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/volt/data_stores/data_store.rb', line 5 def self.fetch if Volt.config.db_driver == 'mongo' return MongoDriver.fetch else fail "#{database_name} is not a supported database" end end |