diff options
author | kennyj <kennyj@gmail.com> | 2012-03-14 02:11:40 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-03-14 02:11:40 +0900 |
commit | fdb8805cdd0d159763507e206a6ca3355b27f983 (patch) | |
tree | 24d51eb42fd41cae1191cfbb3d6d34e1425dbd55 /activerecord/lib/active_record | |
parent | 21b69b233bda5870274c84ef8178c9ad9a47c390 (diff) | |
download | rails-fdb8805cdd0d159763507e206a6ca3355b27f983.tar.gz rails-fdb8805cdd0d159763507e206a6ca3355b27f983.tar.bz2 rails-fdb8805cdd0d159763507e206a6ca3355b27f983.zip |
Fix GH #5399. connection_pools's keys are ActiveRecord::Base::ConnectionSpecification objects.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |