Class: Rack::Adapter::Rails::CgiApp

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/adapter/rails.rb

Overview

For Rails pre Rack (2.3)

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



83
84
85
86
87
88
89
90
91
92
# File 'lib/rack/adapter/rails.rb', line 83

def call(env)
  request         = Request.new(env)
  response        = Response.new
  session_options = ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS
  cgi             = CGIWrapper.new(request, response)

  Dispatcher.dispatch(cgi, session_options, response)

  response.finish
end