From b56fa1d0607bc245f490ce5018c44d28b7773fbf Mon Sep 17 00:00:00 2001 From: Alexander Shapiotko Date: Wed, 15 May 2013 12:22:04 +0300 Subject: [PATCH] Fix bug with deleting messages Fixes bug with deleting messages Fixes #2 --- lib/delayed/backend/ironmq.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/delayed/backend/ironmq.rb b/lib/delayed/backend/ironmq.rb index eb0a450..1af1f6a 100644 --- a/lib/delayed/backend/ironmq.rb +++ b/lib/delayed/backend/ironmq.rb @@ -1,5 +1,4 @@ - module Delayed module Backend module Ironmq @@ -22,7 +21,7 @@ def initialize(data = {}) puts "[init] Delayed::Backend::Ironmq" @msg = nil if data.is_a?(IronMQ::Message) - @mgs = data + @msg = data data = JSON.load(data.body) end