From 52a650ed7bf593be46614737b3e6456cf09977a5 Mon Sep 17 00:00:00 2001 From: Mike Gunderloy Date: Mon, 9 Feb 2009 14:47:18 -0600 Subject: Add some clarification of the side effects of threadsafe! --- railties/lib/initializer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index e3811dd8be..cfd42544b6 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -837,7 +837,8 @@ Run `rake gems:install` to install the missing gems. # 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 -- cgit v1.2.3