aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-xactiverecord/lib/active_record/base.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 1fd247e47b..9edd03e80c 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -306,12 +306,12 @@ module ActiveRecord #:nodoc:
# This is set to :local by default.
cattr_accessor :default_timezone
@@default_timezone = :local
-
+
# Determines whether or not to use a connection for each thread, or a single shared connection for all threads.
- # Defaults to true; Railties' WEBrick server sets this to false.
+ # Defaults to false. Set to true if you're writing a threaded application.
cattr_accessor :allow_concurrency
- @@allow_concurrency = true
-
+ @@allow_concurrency = false
+
# Determines whether to speed up access by generating optimized reader
# methods to avoid expensive calls to method_missing when accessing
# attributes by name. You might want to set this to false in development