Class: Volt::DataStore

Inherits:
Object show all
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

.fetchObject



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