Sha256: f5d3f1f26d1ec572badf9d79bd45b6f70f975e6ac0244e0f0442dd469c77ed16
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
require 'uuid' require 'sitehub/constants' class SiteHub class TransactionId include Constants def initialize(app) @app = app end # TODO: - don't overwrite def call(env) env[RackHttpHeaderKeys::TRANSACTION_ID] ||= UUID.generate(:compact) @app.call env end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.3 | lib/sitehub/transaction_id.rb |