Exception: Devise::MissingWarden

Inherits:
StandardError
  • Object
show all
Defined in:
lib/devise/controllers/helpers.rb

Instance Method Summary collapse

Constructor Details

#initializeMissingWarden

Returns a new instance of MissingWarden.



286
287
288
289
290
291
292
293
# File 'lib/devise/controllers/helpers.rb', line 286

def initialize
  super "Devise could not find the `Warden::Proxy` instance on your request environment.\n" + \
    "Make sure that your application is loading Devise and Warden as expected and that " + \
    "the `Warden::Manager` middleware is present in your middleware stack.\n" + \
    "If you are seeing this on one of your tests, ensure that your tests are either " + \
    "executing the Rails middleware stack or that your tests are using the `Devise::Test::ControllerHelpers` " + \
    "module to inject the `request.env['warden']` object for you."
end