Sha256: 2d4fc4bc49906557fe8f093d6fa423bb5e71373a0d5da4a742249804d0144e9e

Contents?: true

Size: 246 Bytes

Versions: 23

Compression:

Stored size: 246 Bytes

Contents

module Pliny::Middleware::RequestStore
  class Clear
    def initialize(app, options={})
      @app = app
      @store = options[:store] || Pliny::RequestStore
    end

    def call(env)
      @store.clear!
      @app.call(env)
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
pliny-1.1.0 lib/pliny/middleware/request_store/clear.rb
pliny-1.0.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.32.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.31.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.30.1 lib/pliny/middleware/request_store/clear.rb
pliny-0.30.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.29.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.28.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.27.1 lib/pliny/middleware/request_store/clear.rb
pliny-0.27.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.26.2 lib/pliny/middleware/request_store/clear.rb
pliny-0.26.1 lib/pliny/middleware/request_store/clear.rb
pliny-0.26.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.25.1 lib/pliny/middleware/request_store/clear.rb
pliny-0.25.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.24.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.23.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.22.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.21.0 lib/pliny/middleware/request_store/clear.rb
pliny-0.20.2 lib/pliny/middleware/request_store/clear.rb