Implements a handler that can run Rails.
(Not documented)
# File lib/unicorn/app/old_rails.rb, line 18
18: def call(env)
19: cgi = Unicorn::CGIWrapper.new(env)
20: begin
21: Dispatcher.dispatch(cgi,
22: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS,
23: cgi.body)
24: rescue => e
25: err = env['rack.errors']
26: err.write("#{e} #{e.message}\n")
27: e.backtrace.each { |line| err.write("#{line}\n") }
28: end
29: cgi.out # finalize the response
30: cgi.rack_response
31: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.