diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-28 22:05:06 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-28 22:05:06 -0700 |
commit | 1c66ece244824aa1a1d665c76033821424f1c41c (patch) | |
tree | 47a59a1ec611508277f1e9d4ed5f61d5b51268dc | |
parent | 90f6062f7d5893f11ef186e80a91269421dc6f65 (diff) | |
download | rails-1c66ece244824aa1a1d665c76033821424f1c41c.tar.gz rails-1c66ece244824aa1a1d665c76033821424f1c41c.tar.bz2 rails-1c66ece244824aa1a1d665c76033821424f1c41c.zip |
Note that allow_concurrency = true means you need to verify_active_connections! to clear out connections assigned to stale threads.
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 300688453a..63306644fb 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -423,7 +423,9 @@ module ActiveRecord #:nodoc: @@default_timezone = :local # Determines whether to use a connection for each thread, or a single shared connection for all threads. - # Defaults to false. Set to true if you're writing a threaded application. + # Defaults to false. If you're writing a threaded application, set to true + # and periodically call verify_active_connections! to clear out connections + # assigned to stale threads. cattr_accessor :allow_concurrency, :instance_writer => false @@allow_concurrency = false |