rails/rails — pull request #11850 by razielgn (2013-08-12 10:33:34+00:00)
Title: Generalize backtrace check on DelegationError.

Different Ruby implementations present the backtrace differently, as it should be an information consumed by humans. The interesting line might not be the first, so the check has to go through the entire backtrace to find it.

Fixes issues with Rubinius which, in addition to user-space backtrace, also prepends the one from internal classes.

/cc @dbussink