Sha256: d3bfeb7a24019d7fea2e0dda0e6c090e7331e921e2be827172ca7f0ce798876e

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

class RackApp
  attr_reader :last_value, :store_active

  def call(env)
    RequestStore.store[:foo] ||= 0
    RequestStore.store[:foo] += 1
    @last_value = RequestStore.store[:foo]
    @store_active = RequestStore.active?
    raise 'FAIL' if env[:error]
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/request_store-1.3.2/test/test_helper.rb
request_store-1.3.2 test/test_helper.rb
request_store-1.3.1 test/test_helper.rb
request_store-1.3.0 test/test_helper.rb