Sha256: e64ee36b1480d9b485bd111fdbc277b0a273dbf4d75a4e9d41f527c6597709a2

Contents?: true

Size: 496 Bytes

Versions: 12

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

require_relative "rack/request_logger"
require_relative "rack/store_request_details"
require_relative "rack/request_id"

module Kiev
  module Hanami
    def self.included(base)
      base.configure do
        # The order is important
        middleware.use(::RequestStore::Middleware)
        middleware.use(Kiev::Rack::RequestLogger)
        middleware.use(Kiev::Rack::StoreRequestDetails)
        middleware.use(Kiev::Rack::RequestId)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kiev-4.9.0 lib/kiev/hanami.rb
kiev-4.8.3 lib/kiev/hanami.rb
kiev-4.8.2 lib/kiev/hanami.rb
kiev-4.8.1 lib/kiev/hanami.rb
kiev-4.8.0 lib/kiev/hanami.rb
kiev-4.7.0 lib/kiev/hanami.rb
kiev-4.6.0 lib/kiev/hanami.rb
kiev-4.5.0 lib/kiev/hanami.rb
kiev-4.4.0 lib/kiev/hanami.rb
kiev-4.3.0 lib/kiev/hanami.rb
kiev-4.2.0 lib/kiev/hanami.rb
kiev-4.1.0 lib/kiev/hanami.rb