From fdb8805cdd0d159763507e206a6ca3355b27f983 Mon Sep 17 00:00:00 2001 From: kennyj Date: Wed, 14 Mar 2012 02:11:40 +0900 Subject: Fix GH #5399. connection_pools's keys are ActiveRecord::Base::ConnectionSpecification objects. --- activerecord/lib/active_record/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index e75a2a1cb4..46aababfb6 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -130,7 +130,7 @@ module ActiveRecord end def arel_engine - @arel_engine ||= connection_handler.connection_pools[name] ? self : active_record_super.arel_engine + @arel_engine ||= connection_handler.retrieve_connection_pool(self) ? self : active_record_super.arel_engine end private -- cgit v1.2.3