Module: Rack::Current

Included in:
Middleware
Defined in:
lib/rack-current/middleware.rb,
lib/rack-current/railtie.rb,
lib/rack-current.rb

Defined Under Namespace

Classes: Middleware, Railtie

Instance Method Summary collapse

Instance Method Details

#current_requestObject



5
6
7
# File 'lib/rack-current.rb', line 5

def current_request
  Thread.current[:_current_request]
end