lib/qpush/web/apis/heart.rb in qpush-0.1.4 vs lib/qpush/web/apis/heart.rb in qpush-0.1.6

- old
+ new

@@ -1,10 +1,10 @@ module QPush module Web module Apis class Heart def call - heart = QPush.redis.with { |c| c.get(QPush.keys.heart) } + heart = Web.redis { |c| c.get(QPush.keys.heart) } { status: !heart.nil?, namespace: QPush.config.namespace } end end end end