Sha256: c76d5321f0da6ad000589e946a4aa96855adab1cc89a269d1c8dd11dd8669128

Contents?: true

Size: 272 Bytes

Versions: 4

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

module LogsForMyFamily
  class Rack
    def initialize(app)
      @app = app
    end

    def call(env)
      logger = LogsForMyFamily::Logger.new.set_request(env)
      LogsForMyFamily.logger = logger
      @app.call(env)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logsformyfamily-0.3.0 lib/logsformyfamily/rack.rb
logsformyfamily-0.2.3 lib/logsformyfamily/rack.rb
logsformyfamily-0.2.2 lib/logsformyfamily/rack.rb
logsformyfamily-0.2.1 lib/logsformyfamily/rack.rb