Class: ExvoAuth::Dejavu
- Inherits:
-
Object
- Object
- ExvoAuth::Dejavu
- Defined in:
- lib/exvo_auth/dejavu.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Dejavu
constructor
A new instance of Dejavu.
Constructor Details
#initialize(app) ⇒ Dejavu
Returns a new instance of Dejavu.
2 3 4 |
# File 'lib/exvo_auth/dejavu.rb', line 2 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
6 7 8 9 |
# File 'lib/exvo_auth/dejavu.rb', line 6 def call(env) dejavu(env) if Rack::Request.new(env).path == "/auth/dejavu" @app.call(env) end |