Add couchbase with modifications, formalize broadcaster and make testable and some other stuff

This commit is contained in:
2014-03-06 18:08:39 +01:00
parent 3f117c76b0
commit 0e7a39b819
28 changed files with 456 additions and 35 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
#TODO: this is really ugly, can cause memory leaks and much more bad stuff. We need a new broadcaster....
require 'simply_stored/couch'
module ModelBroadcast
def broadcast_supplier(*args)
@@ -8,4 +9,4 @@ module ModelBroadcast
end
end
SimplyStored::Couch.send(:include, ModelBroadcast)
SimplyStored::Couch.send(:extend, ModelBroadcast)
#SimplyStored::Couch.send(:extend, ModelBroadcast) # this should never happen!!!