aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-03-14 02:34:12 +0900
committerkennyj <kennyj@gmail.com>2012-03-14 02:34:12 +0900
commit21d9c0fc7f79f486fb2c67b3593e9496a1c57663 (patch)
tree30358e92723f4599a67bf6f4a9fb65c3c297b6b3 /activerecord/lib/active_record/base.rb
parentdfbbf31dd2056d989cac8f1942130d93aa841e1b (diff)
downloadrails-21d9c0fc7f79f486fb2c67b3593e9496a1c57663.tar.gz
rails-21d9c0fc7f79f486fb2c67b3593e9496a1c57663.tar.bz2
rails-21d9c0fc7f79f486fb2c67b3593e9496a1c57663.zip
[3-2-stable] Fix GH #5399. connection_pools's keys are ActiveRecord::Base::ConnectionSpecification objects.
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 425cd8cbab..9746efc7d1 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -442,7 +442,7 @@ module ActiveRecord #:nodoc:
if self == ActiveRecord::Base
ActiveRecord::Base
else
- connection_handler.connection_pools[name] ? self : superclass.arel_engine
+ connection_handler.retrieve_connection_pool(self) ? self : superclass.arel_engine
end
end
end