Exception: Negroni::OmniAuth::UnknownStrategy

Inherits:
NameError
  • Object
show all
Defined in:
lib/negroni/omniauth/config.rb

Overview

Raised if a strategy is unknown or not found.

Instance Method Summary collapse

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