Exception: Kingsman::MissingWarden
- Inherits:
-
StandardError
- Object
- StandardError
- Kingsman::MissingWarden
- Defined in:
- lib/kingsman/controllers/helpers.rb
Instance Method Summary collapse
-
#initialize ⇒ MissingWarden
constructor
A new instance of MissingWarden.
Constructor Details
#initialize ⇒ MissingWarden
Returns a new instance of MissingWarden.
212 213 214 215 216 217 218 219 |
# File 'lib/kingsman/controllers/helpers.rb', line 212 def initialize super "Kingsman could not find the `Warden::Proxy` instance on your request environment.\n" + \ "Make sure that your application is loading Kingsman 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 `Kingsman::Test::ControllerHelpers` " + \ "module to inject the `request.env['warden']` object for you." end |