Method: Deas::BaseLogging#call
- Defined in:
- lib/deas/logging.rb
#call(env) ⇒ Object
The Rack call interface. The receiver acts as a prototype and runs each request in a clone object unless the rack.run_once
variable is set in the environment. Ripped from: github.com/rtomayko/rack-cache/blob/master/lib/rack/cache/context.rb
23 24 25 26 27 28 29 |
# File 'lib/deas/logging.rb', line 23 def call(env) if env['rack.run_once'] call! env else clone.call! env end end |