Sha256: 618889672603dc92062a43ce529cb326aad0562370e180b82c105a48fac2fc1c
Contents?: true
Size: 405 Bytes
Versions: 2
Compression:
Stored size: 405 Bytes
Contents
module Chillout module Middleware class CreationsMonitor def initialize(app, client) @app = app @client = client end def call(env) response = @app.call(env) if Thread.current[:creations] @client.send_creations(Thread.current[:creations]) Thread.current[:creations] = nil end response end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chillout-0.2.1 | lib/chillout/middleware/creations_monitor.rb |
chillout-0.2.0 | lib/chillout/middleware/creations_monitor.rb |