app/volt/tasks/live_query/data_store.rb in volt-0.8.2 vs app/volt/tasks/live_query/data_store.rb in volt-0.8.3
- old
+ new
@@ -1,10 +1,9 @@
require 'mongo'
class DataStore
def initialize
- @@mongo_db ||= Mongo::MongoClient.new("localhost", 27017)
- @@db ||= @@mongo_db.db("development")
+ @@db = Volt::DataStore.fetch
end
def query(collection, query)
query = query.dup
query.keys.each do |key|