Sha256: 8ebb091f21c4daa5ea1d1bfd906847164a0136bf2c7bf2e20305654990568831
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
module Napa class LogTransaction class << self def id Thread.current[:napa_tid].nil? ? Thread.current[:napa_tid] = SecureRandom.hex(10) : Thread.current[:napa_tid] end def id=(id) Thread.current[:napa_tid] = id end def clear Thread.current[:napa_tid] = nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
napa-0.1.2 | lib/napa/logger/log_transaction.rb |
napa-0.1.1 | lib/napa/logger/log_transaction.rb |
napa-0.1.0 | lib/napa/logger/log_transaction.rb |