app/volt/tasks/live_query/data_store.rb in volt-0.6.5 vs app/volt/tasks/live_query/data_store.rb in volt-0.7.0
- old
+ new
@@ -3,10 +3,10 @@
class DataStore
def initialize
@@mongo_db ||= Mongo::MongoClient.new("localhost", 27017)
@@db ||= @@mongo_db.db("development")
end
-
+
def query(collection, query)
@@db[collection].find(query).to_a
end
-end
\ No newline at end of file
+end