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