Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [bc2c4a45959be21e6314fba7876b32c1f04cd08a] by Hongli Lai (Phusion)

Revision bc2c4a45959be21e6314fba7876b32c1f04cd08a, committed by Hongli Lai (Phusion) · July 8th, 2009 @ 02:46 AM

Cleanup application after #close has been called on the Rack response body, not when AC::Reload#call is done.

The Rack body might lazily evaluate its output, which is for example the case if one calls 'render :text => lambda { ... }'. The code which lazily evaluates the output might use other application classes. So we will want to defer cleanup until the Rack request is completely finished.

Signed-off-by: Michael Koziarski michael@koziarski.com http://github.com/rails/rails/co...

2 changed files

  • M actionpack/lib/action_controller/reloader.rb
  • M actionpack/test/controller/reloader_test.rb