aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/threaded_connections_test.rb
diff options
context:
space:
mode:
authorNick <nick@nicksieger.com>2008-04-19 00:34:22 -0500
committerNick Sieger <nick@nicksieger.com>2008-08-29 14:12:08 -0500
commit5879b15f23f080badedbbab7835eda8c2c748a52 (patch)
tree26d7a2ddcf4b9a844f0e7bf93427f6f0ff09c5a6 /activerecord/test/cases/threaded_connections_test.rb
parent6edaa267174dfedaf5b152b9eba25b4eb5e34c99 (diff)
downloadrails-5879b15f23f080badedbbab7835eda8c2c748a52.tar.gz
rails-5879b15f23f080badedbbab7835eda8c2c748a52.tar.bz2
rails-5879b15f23f080badedbbab7835eda8c2c748a52.zip
Rename defined_connections to connection_pools
- Distinguis meaning of "active_connections" to always mean connections associated with the current thread
Diffstat (limited to 'activerecord/test/cases/threaded_connections_test.rb')
-rw-r--r--activerecord/test/cases/threaded_connections_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/threaded_connections_test.rb b/activerecord/test/cases/threaded_connections_test.rb
index fedcab98e3..9bf7217958 100644
--- a/activerecord/test/cases/threaded_connections_test.rb
+++ b/activerecord/test/cases/threaded_connections_test.rb
@@ -26,7 +26,7 @@ unless %w(FrontBase).include? ActiveRecord::Base.connection.adapter_name
5.times do
Thread.new do
Topic.find :first
- @connections << ActiveRecord::Base.active_connections.first
+ @connections << ActiveRecord::Base.active_connections.values.first
end.join
end
end