Sha256: 5881fd5555914703e563d71faab616c97ad80ce9d2c1ed79b85ad8b495d5c607
Contents?: true
Size: 274 Bytes
Versions: 2
Compression:
Stored size: 274 Bytes
Contents
module Ndoid class Middleware def initialize(app) @app = app end def call(env) old, Thread.current[:neoid_enabled] = Thread.current[:neoid_enabled], true @app.call(env) ensure Thread.current[:neoid_enabled] = old end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
neoid-0.0.51 | lib/neoid/middleware.rb |
neoid-0.0.5.alpha | lib/neoid/middleware.rb |