From 246a082bd5e0477965a8fc7511c0befecc4818e2 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Mon, 21 Mar 2011 21:23:32 +0800 Subject: [PATCH] Hook individual failure removal into multiple failure backend --- lib/resque/failure/multiple.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/resque/failure/multiple.rb b/lib/resque/failure/multiple.rb index fc7e84486..4ac1d98f8 100644 --- a/lib/resque/failure/multiple.rb +++ b/lib/resque/failure/multiple.rb @@ -45,6 +45,10 @@ def self.clear def self.requeue(*args) classes.first.requeue(*args) end + + def self.remove(index) + classes.each { |klass| klass.remove(index) } + end end end -end \ No newline at end of file +end