Exception: Negroni::OmniAuth::UnknownStrategy
- Inherits:
-
NameError
- Object
- NameError
- Negroni::OmniAuth::UnknownStrategy
- Defined in:
- lib/negroni/omniauth/config.rb
Overview
Raised if a strategy is unknown or not found.
Instance Method Summary collapse
-
#initialize(strategy) ⇒ UnknownStrategy
constructor
Raise a new error for ‘strategy`.
Constructor Details
#initialize(strategy) ⇒ UnknownStrategy
Raise a new error for ‘strategy`.
8 9 10 11 12 13 |
# File 'lib/negroni/omniauth/config.rb', line 8 def initialize(strategy) @strategy = strategy super("Could not find a strategy named `#{strategy}`. " \ "Please ensure it is `require`d or explicitly set using " \ "the :strategy_class option.") end |