mperham/sidekiq — pull request #600 by jackrg (2012-12-25 07:18:14+00:00)
Title: Fix issue with #insert_before and #insert_after

Middleware chain corrupt results from using #insert_before or #insert_after. #delete_if returns the chain, not the entry deleted. Changed to use #index followed by #delete_at instead.