Method: Deas::ShowExceptions#call
- Defined in:
- lib/deas/show_exceptions.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
15 16 17 18 19 20 21 |
# File 'lib/deas/show_exceptions.rb', line 15 def call(env) if env['rack.run_once'] call! env else clone.call! env end end |