lib/qpush/web/apis/jobs.rb in qpush-0.1.4 vs lib/qpush/web/apis/jobs.rb in qpush-0.1.6
- old
+ new
@@ -12,10 +12,10 @@
end
private
def retrieve_jobs
- QPush.redis.with { |c| @jobs = c.smembers("#{QPush.keys.jobs}") }
+ Web.redis { |c| @jobs = c.smembers("#{QPush.keys.jobs}") }
end
def update_jobs
@jobs.map! { |job| { klass: job } }
end