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.
4 5 6 |
# File 'lib/lumberjack/rack/unit_of_work.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 |
# File 'lib/lumberjack/rack/unit_of_work.rb', line 8 def call(env) Lumberjack.unit_of_work do @app.call(env) end end |