plataformatec/devise — pull request #1719 by hakanensari (2012-03-15 02:55:53+00:00)
Title: Fix redirect when authenticating mounted apps

The patch fixes [this really annoying issue] [1].

If you really want to get to the bottom of it, the answer lies somewhere between `Devise::FailureApp` and `ActionDispatch::Routing::RoutesProxy`.

I didn't quite succeed in translating my sophisticated eyeball QA to a failing test but all existing tests pass, which should make everyone quite happy.

[1]: https://github.com/plataformatec/devise/issues/1592