Sha256: e5cadac7a2abbecf7a284b78b198dc22fcde10ccdd763926507d9639bf3740a8
Contents?: true
Size: 307 Bytes
Versions: 3
Compression:
Stored size: 307 Bytes
Contents
module ModelLog module Request class << self def current_request Thread.current[:request] end def current_request=(value) Thread.current[:request] = value end def clear_current_request! Thread.current[:request] = nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
model_log-1.0.2 | lib/model_log/request.rb |
model_log-1.0.1 | lib/model_log/request.rb |
model_log-1.0.0 | lib/model_log/request.rb |