mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-11 15:58:12 -05:00
Previously, a `NoMethodError` exception would be raised from here when the middleware stack isn't present and Warden wasn't injected as expected (like in a controller test). To foolproof ourselves, we now raise a more informative error when `request.env['warden']` is `nil` so developers can figure this out on their own instead of reaching to the issue tracker for guidance.