Class: Lumberjack::Rack::UnitOfWork
- Inherits:
-
Object
- Object
- Lumberjack::Rack::UnitOfWork
- Defined in:
- lib/lumberjack/rack/unit_of_work.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ UnitOfWork
constructor
A new instance of UnitOfWork.
Constructor Details
#initialize(app) ⇒ UnitOfWork
Returns a new instance of UnitOfWork.
6 7 8 |
# File 'lib/lumberjack/rack/unit_of_work.rb', line 6 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 |
# File 'lib/lumberjack/rack/unit_of_work.rb', line 10 def call(env) Lumberjack.unit_of_work do @app.call(env) end end |