Sha256: a7bf40251b21a675b7633118a883d6776da895df49e69fc1d1e32412a6e7d685

Contents?: true

Size: 267 Bytes

Versions: 14

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literals: true

module Lumberjack
  module Rack
    class UnitOfWork
      def initialize(app)
        @app = app
      end
      
      def call(env)
        Lumberjack.unit_of_work do
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
lumberjack-1.2.7 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.2.6 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.2.5 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.2.4 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.2.3 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.2.2 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.2.1 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.2.0 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.1.1 lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.1.0 lib/lumberjack/rack/unit_of_work.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/lumberjack-1.0.13/lib/lumberjack/rack/unit_of_work.rb
alimentos-alu0100945645-0.1.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.13/lib/lumberjack/rack/unit_of_work.rb
alimentos-alu0100945645-1.0.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.13/lib/lumberjack/rack/unit_of_work.rb
lumberjack-1.0.13 lib/lumberjack/rack/unit_of_work.rb