Class: Upfluence::ErrorLogger::Null::Middleware
- Inherits:
-
Object
- Object
- Upfluence::ErrorLogger::Null::Middleware
- Defined in:
- lib/upfluence/error_logger/null.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
5 6 7 |
# File 'lib/upfluence/error_logger/null.rb', line 5 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/upfluence/error_logger/null.rb', line 9 def call(env) @app.call(env) rescue => e notify(error) raise e end |