if Rails.env.development? Qwaiter.event_host = "http://localhost:9296/faye" else Qwaiter.event_host = "https://events.mozo.bar/faye" end 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?