Permalink
Browse files

Add some clarification of the side effects of threadsafe!

  • Loading branch information...
1 parent 7a1b62e commit 52a650ed7bf593be46614737b3e6456cf09977a5 @ffmike ffmike committed Feb 9, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/initializer.rb
@@ -837,7 +837,8 @@ def set_root_path!
# Enable threaded mode. Allows concurrent requests to controller actions and
# multiple database connections. Also disables automatic dependency loading
- # after boot
+ # after boot, and disables reloading code on every request, as these are
+ # fundamentally incompatible with thread safety.
def threadsafe!
self.preload_frameworks = true
self.cache_classes = true

0 comments on commit 52a650e

Please sign in to comment.