defunkt/resque — pull request #750 by ismailasci (2012-11-15 00:36:26+00:00)
Title: /failed/requeue/all throws exception if has multiple failed jobs

We are calling requeue_and_remove `Resque::Failure.count` times but after calling remove method we won't have `Resque::Failure.count` much index anymore. That's why `item = all(index)` returns nil at some point and `item['retried_at']` causes undefined method exception.