airbrake/airbrake — pull request #271 by rykov (2014-02-04 05:21:24+00:00)
Title: Keep passed exception if original_exception is nil

In Rails, when `ActionController::BadRequest` exception is raised, the exception object responds to `original_exception`, but that method returns a nil value. This causes `error_class` and many other values for the Notice to be nil.

This change keeps the passed exception, if the exception responds to `original_exception` or `continued_exception`, but the method call returns nil