Sha256: 4ddb19d2f1c6bb8eb75a37150fb408d26013ac49f40ef4648f66b539c654d96a

Contents?: true

Size: 213 Bytes

Versions: 17

Compression:

Stored size: 213 Bytes

Contents

# frozen_string_literal: true

module Cased
  class RackMiddleware
    def initialize(app)
      @app = app
    end

    def call(env)
      @app.call(env)
    ensure
      Cased::Context.clear!
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cased-ruby-0.8.0 lib/cased/rack_middleware.rb
cased-ruby-0.7.1 lib/cased/rack_middleware.rb
cased-ruby-0.7.0 lib/cased/rack_middleware.rb
cased-ruby-0.6.1 lib/cased/rack_middleware.rb
cased-ruby-0.5.2 lib/cased/rack_middleware.rb
cased-ruby-0.5.1 lib/cased/rack_middleware.rb
cased-ruby-0.5.0 lib/cased/rack_middleware.rb
cased-ruby-0.4.8 lib/cased/rack_middleware.rb
cased-ruby-0.4.7 lib/cased/rack_middleware.rb
cased-ruby-0.4.6 lib/cased/rack_middleware.rb
cased-ruby-0.4.5 lib/cased/rack_middleware.rb
cased-ruby-0.4.4 lib/cased/rack_middleware.rb
cased-ruby-0.4.3 lib/cased/rack_middleware.rb
cased-ruby-0.4.2 lib/cased/rack_middleware.rb
cased-ruby-0.4.1 lib/cased/rack_middleware.rb
cased-ruby-0.4.0 lib/cased/rack_middleware.rb
cased-ruby-0.3.3 lib/cased/rack_middleware.rb