{"issue":{"created_at":"2011-12-07T11:19:50Z","state":"closed","updated_at":"2011-12-07T14:55:26Z","user":{"gravatar_id":"c4486876726bcef5b87268564fc29e6c","id":124430,"url":"https://api.github.com/users/dmitriy-kiriyenko","login":"dmitriy-kiriyenko","avatar_url":"https://secure.gravatar.com/avatar/c4486876726bcef5b87268564fc29e6c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":4,"body":"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\r\nbroken code.\r\n\r\nThe point is that `env[\"warden.options\"][:scope]` returns a string. However, `Devise.mappings` is a hash with symbol keys.\r\n\r\nAdding tests and converting scope to symbol here.\r\n\r\nI 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.\r\n\r\nThis bug for me is a blocker to use Devise >= 1.5.","assignee":null,"number":1489,"pull_request":{"patch_url":"https://github.com/plataformatec/devise/pull/1489.patch","html_url":"https://github.com/plataformatec/devise/pull/1489","diff_url":"https://github.com/plataformatec/devise/pull/1489.diff"},"id":2473563,"labels":[],"title":"Fix taking associated failure app from the scope in the given env.","html_url":"https://github.com/plataformatec/devise/issues/1489","closed_at":"2011-12-07T12:12:26Z","url":"https://api.github.com/repos/plataformatec/devise/issues/1489","milestone":null},"action":"created","comment":{"created_at":"2011-12-07T14:55:26Z","updated_at":"2011-12-07T14:55:26Z","user":{"gravatar_id":"c4486876726bcef5b87268564fc29e6c","id":124430,"url":"https://api.github.com/users/dmitriy-kiriyenko","login":"dmitriy-kiriyenko","avatar_url":"https://secure.gravatar.com/avatar/c4486876726bcef5b87268564fc29e6c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Thanks! Sure this fixes my problem - I've tested it before suggesting a code change.","id":3048055,"url":"https://api.github.com/repos/plataformatec/devise/issues/comments/3048055"}}