Replace couchbase counters with drb version

This commit is contained in:
2014-08-05 17:49:16 +02:00
parent c0c25673bf
commit 99a9536c68
20 changed files with 400 additions and 282 deletions
+8
View File
@@ -1,2 +1,10 @@
Qwaiter.event_host = "http://#{Rails.env.production? ? 'events.qwaiter.com' : 'localhost'}:9296/faye"
Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new
# use the connection from couchbase-structures/documents
# will be overwritten in the specs since flushing the real
# thing is difficult
# Qwaiter::Counter.connection = $cb unless Rails.env.test?
# Use the Drb counter
Qwaiter::Counter.connection = Qwaiter::DrbCounter.object unless Rails.env.test?