1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure each rack request has its own dispatcher instance

This commit is contained in:
Joshua Peek 2008-12-04 11:03:16 -06:00
parent 40e9ba1e46
commit b2ad3029cd

View file

@ -96,7 +96,7 @@ module ActionController
def initialize(output = $stdout, request = nil, response = nil)
@output, @request, @response = output, request, response
@app = @@middleware.build(lambda { |env| self._call(env) })
@app = @@middleware.build(lambda { |env| self.dup._call(env) })
end
def dispatch_unlocked