coderanger/raven-ruby — pull request #24 by zimbatm (2012-08-24 14:56:20+00:00)
Title: Use Rack middleware in older versions of Rails 3 (3.1.3 for example)

This is a version that works on my Rails 3.0.12. Inspired from https://github.com/airbrake/airbrake/blob/master/lib/airbrake/rails/middleware/exceptions_catcher.rb