aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 6ff0e4a9e0..b32843d069 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -289,6 +289,11 @@ 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.
+ cattr_accessor :threaded_connections
+ @@threaded_connections = true
class << self # Class methods
# Find operates with three different retreval approaches: