Class: Lumberjack::Rack::UnitOfWork

Inherits:
Object
  • Object
show all
Defined in:
lib/lumberjack/rack/unit_of_work.rb

Instance Method Summary collapse

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