plataformatec/devise — pull request #1489 by dmitriy-kiriyenko (2011-12-07 11:19:50+00:00)
Title: Fix taking associated failure app from the scope in the given env.

There is a delegator to get failure app, introduced in 4629bee and tuned in 24b26026. The latter commit introduced a bit of logic, however, no tests are included into commit. Needless to say this resulted in a
broken code.

The point is that `env["warden.options"][:scope]` returns a string. However, `Devise.mappings` is a hash with symbol keys.

Adding tests and converting scope to symbol here.

I couldn't find the way to create and push the scope to use in the last test, so injecting a local variable here. @josevalim, please, help me with the last test.

This bug for me is a blocker to use Devise >= 1.5.